public abstract class AbstractLogin extends AbstractLogin
AbstractLogin
_auth, _singleSignon
LOGIN_PASSWORD, LOGIN_USER, LOGIN_USER_NAME
Constructor and Description |
---|
AbstractLogin()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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
|
findSavedUser, getAuthenticator, getAuthType, getLoginPrincipalImpl, getSingleSignon, getUserPrincipal, init, isLoginUsedForRequest, isLogoutOnSessionTimeout, isPasswordBased, isSavedUserValid, isSessionSaveLogin, login, loginChallenge, loginSuccessResponse, logout, logoutImpl, saveUser, sessionInvalidate, setAuthenticator, setLogoutOnSessionTimeout, setSessionSaveLogin, toString
public java.security.Principal getUserPrincipalImpl(HttpServletRequest request)
getUserPrincipalImpl
in class AbstractLogin
protected java.security.Principal getUserPrincipal(HttpServletRequest request, HttpServletResponse response, ServletContext app)
public java.security.Principal login(HttpServletRequest request, HttpServletResponse response, boolean isFail)
login
in interface Login
login
in class AbstractLogin
request
- servlet requestresponse
- servlet response for a failed authentication.isFail
- if true send a challenge (Form|HTTP Basic,etc.)protected java.security.Principal authenticate(HttpServletRequest request, HttpServletResponse response, ServletContext app) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public boolean isUserInRole(java.security.Principal user, java.lang.String role)
isUserInRole
is called in response to the
HttpServletRequest.isUserInRole
call.isUserInRole
in interface Login
isUserInRole
in class AbstractLogin
user
- the logged in userrole
- the role to checkprotected boolean isUserInRole(HttpServletRequest request, HttpServletResponse response, ServletContext app, java.security.Principal user, java.lang.String role)