com.caucho.server.security
Class AbstractLogin

java.lang.Object
  extended by com.caucho.security.AbstractLogin
      extended by com.caucho.server.security.AbstractLogin
All Implemented Interfaces:
Login

Deprecated.

public abstract class AbstractLogin
extends AbstractLogin

Backwards compatibility

Since:
Resin 2.0.2
See Also:
AbstractLogin

Field Summary
 
Fields inherited from class com.caucho.security.AbstractLogin
_auth, _singleSignon, log
 
Fields inherited from interface com.caucho.security.Login
LOGIN_PASSWORD, LOGIN_USER_NAME, LOGIN_USER_PRINCIPAL
 
Constructor Summary
AbstractLogin()
          Deprecated.  
 
Method Summary
protected  java.security.Principal authenticate(HttpServletRequest request, HttpServletResponse response, ServletContext app)
          Deprecated.  
protected  java.security.Principal getUserPrincipal(HttpServletRequest request, HttpServletResponse response, ServletContext app)
          Deprecated.  
 java.security.Principal getUserPrincipalImpl(HttpServletRequest request)
          Deprecated. Authentication
protected  boolean isUserInRole(HttpServletRequest request, HttpServletResponse response, ServletContext app, java.security.Principal user, java.lang.String role)
          Deprecated.  
 boolean isUserInRole(java.security.Principal user, java.lang.String role)
          Deprecated. Returns true if the current user plays the named role.
 java.security.Principal login(HttpServletRequest request, HttpServletResponse response, boolean isFail)
          Deprecated. Authentication
 
Methods inherited from class com.caucho.security.AbstractLogin
findSavedUser, getAuthenticator, getAuthType, getLoginPrincipalImpl, getSingleSignon, getUserPrincipal, init, isLoginUsedForRequest, isLogoutOnSessionTimeout, isPasswordBased, isSavedUserValid, isSessionSaveLogin, login, loginChallenge, loginSuccessResponse, logout, logoutImpl, saveUser, sessionInvalidate, setAuthenticator, setLogoutOnSessionTimeout, setSessionSaveLogin, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractLogin

public AbstractLogin()
Deprecated. 
Method Detail

getUserPrincipalImpl

public java.security.Principal getUserPrincipalImpl(HttpServletRequest request)
Deprecated. 
Authentication

Overrides:
getUserPrincipalImpl in class AbstractLogin

getUserPrincipal

protected java.security.Principal getUserPrincipal(HttpServletRequest request,
                                                   HttpServletResponse response,
                                                   ServletContext app)
Deprecated. 

login

public java.security.Principal login(HttpServletRequest request,
                                     HttpServletResponse response,
                                     boolean isFail)
Deprecated. 
Authentication

Specified by:
login in interface Login
Overrides:
login in class AbstractLogin
Parameters:
request - servlet request
response - servlet response for a failed authentication.
isFail - if true send a challenge (Form|HTTP Basic,etc.)
Returns:
the logged in principal on success, null on failure.

authenticate

protected java.security.Principal authenticate(HttpServletRequest request,
                                               HttpServletResponse response,
                                               ServletContext app)
                                        throws ServletException,
                                               java.io.IOException
Deprecated. 
Throws:
ServletException
java.io.IOException

isUserInRole

public boolean isUserInRole(java.security.Principal user,
                            java.lang.String role)
Deprecated. 
Returns true if the current user plays the named role. isUserInRole is called in response to the HttpServletRequest.isUserInRole call.

Specified by:
isUserInRole in interface Login
Overrides:
isUserInRole in class AbstractLogin
Parameters:
user - the logged in user
role - the role to check
Returns:
true if the user plays the named role

isUserInRole

protected boolean isUserInRole(HttpServletRequest request,
                               HttpServletResponse response,
                               ServletContext app,
                               java.security.Principal user,
                               java.lang.String role)
Deprecated.