com.atlassian.confluence.user
Class CrowdConfluenceAuthenticator

java.lang.Object
  extended by com.atlassian.seraph.auth.AbstractAuthenticator
      extended by com.atlassian.seraph.auth.DefaultAuthenticator
          extended by com.atlassian.crowd.integration.seraph.v22.CrowdAuthenticator
              extended by com.atlassian.confluence.user.CrowdConfluenceAuthenticator
All Implemented Interfaces:
com.atlassian.seraph.auth.Authenticator, com.atlassian.seraph.Initable, Serializable

public class CrowdConfluenceAuthenticator
extends com.atlassian.crowd.integration.seraph.v22.CrowdAuthenticator

Use this authenticator instead of the default ConfluenceAuthenticator to enable SSO.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.crowd.integration.seraph.v22.CrowdAuthenticator
logger
 
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
 
Constructor Summary
CrowdConfluenceAuthenticator()
           
CrowdConfluenceAuthenticator(com.atlassian.crowd.integration.http.CrowdHttpAuthenticator crowdHttpAuthenticator)
           
 
Method Summary
protected  EventManager getEventManager()
           
protected  Principal getUser(String username)
           
protected  com.atlassian.user.UserManager getUserManager()
           
 boolean login(HttpServletRequest request, HttpServletResponse response, String username, String password, boolean cookie)
           
protected  void logoutUser(HttpServletRequest request)
           
 
Methods inherited from class com.atlassian.crowd.integration.seraph.v22.CrowdAuthenticator
authenticate, fetchUserInCache, getUser, isAuthenticated, logout, rememberMeLoginToCrowd
 
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, isPrincipalAlreadyInSessionContext, 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
 

Constructor Detail

CrowdConfluenceAuthenticator

public CrowdConfluenceAuthenticator()

CrowdConfluenceAuthenticator

public CrowdConfluenceAuthenticator(com.atlassian.crowd.integration.http.CrowdHttpAuthenticator crowdHttpAuthenticator)
Method Detail

logoutUser

protected void logoutUser(HttpServletRequest request)
Specified by:
logoutUser in class com.atlassian.crowd.integration.seraph.v22.CrowdAuthenticator

getUser

protected Principal getUser(String username)
Specified by:
getUser in class com.atlassian.seraph.auth.DefaultAuthenticator

login

public boolean login(HttpServletRequest request,
                     HttpServletResponse response,
                     String username,
                     String password,
                     boolean cookie)
              throws com.atlassian.seraph.auth.AuthenticatorException
Specified by:
login in interface com.atlassian.seraph.auth.Authenticator
Overrides:
login in class com.atlassian.crowd.integration.seraph.v22.CrowdAuthenticator
Throws:
com.atlassian.seraph.auth.AuthenticatorException

getEventManager

protected EventManager getEventManager()

getUserManager

protected com.atlassian.user.UserManager getUserManager()


Confluence is developed by Atlassian.