com.atlassian.confluence.user
Class ConfluenceAuthenticator
java.lang.Object
com.atlassian.seraph.auth.AbstractAuthenticator
com.atlassian.seraph.auth.DefaultAuthenticator
com.atlassian.confluence.user.ConfluenceAuthenticator
- All Implemented Interfaces:
- com.atlassian.seraph.auth.Authenticator, com.atlassian.seraph.Initable, Serializable
- Direct Known Subclasses:
- ConfluenceGroupJoiningAuthenticator
public class ConfluenceAuthenticator
- extends com.atlassian.seraph.auth.DefaultAuthenticator
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.seraph.auth.DefaultAuthenticator |
LOGGED_IN_KEY, LOGGED_OUT_KEY |
Fields inherited from interface com.atlassian.seraph.auth.Authenticator |
DEFAULT_AUTHENTICATOR |
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator |
authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, isUserInRole, putPrincipalInSessionContext, removePrincipalFromSessionContext |
Methods inherited from class com.atlassian.seraph.auth.AbstractAuthenticator |
destroy, getConfig, getRemoteUser, getUser, login |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceAuthenticator
public ConfluenceAuthenticator()
logout
public boolean logout(HttpServletRequest request,
HttpServletResponse response)
throws com.atlassian.seraph.auth.AuthenticatorException
- Specified by:
logout
in interface com.atlassian.seraph.auth.Authenticator
- Overrides:
logout
in class com.atlassian.seraph.auth.DefaultAuthenticator
- Throws:
com.atlassian.seraph.auth.AuthenticatorException
login
public boolean login(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse,
String username,
String password,
boolean b)
throws com.atlassian.seraph.auth.AuthenticatorException
- Specified by:
login
in interface com.atlassian.seraph.auth.Authenticator
- Overrides:
login
in class com.atlassian.seraph.auth.DefaultAuthenticator
- Throws:
com.atlassian.seraph.auth.AuthenticatorException
authenticate
protected boolean authenticate(Principal user,
String password)
- Overrides:
authenticate
in class com.atlassian.seraph.auth.DefaultAuthenticator
getEventManager
protected EventManager getEventManager()
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
getUserAccessor
protected UserAccessor getUserAccessor()
getUser
protected Principal getUser(String uid)
- Overrides:
getUser
in class com.atlassian.seraph.auth.DefaultAuthenticator
getUser
public Principal getUser(HttpServletRequest request,
HttpServletResponse httpServletResponse)
- Specified by:
getUser
in interface com.atlassian.seraph.auth.Authenticator
- Overrides:
getUser
in class com.atlassian.seraph.auth.DefaultAuthenticator