|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.security.AbstractLogin
com.caucho.server.security.AbstractLogin
public abstract class AbstractLogin
Backwards compatibility
AbstractLogin
Field Summary |
---|
Fields inherited from class com.caucho.security.AbstractLogin |
---|
_auth, _singleSignon |
Fields inherited from interface com.caucho.security.Login |
---|
LOGIN_PASSWORD, LOGIN_USER, LOGIN_USER_NAME |
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 |
---|
public AbstractLogin()
Method Detail |
---|
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 check
protected boolean isUserInRole(HttpServletRequest request, HttpServletResponse response, ServletContext app, java.security.Principal user, java.lang.String role)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |