com.atlassian.confluence.user
Class ConfluenceAuthenticator

java.lang.Object
  extended by com.atlassian.seraph.auth.AbstractAuthenticator
      extended by com.atlassian.seraph.auth.DefaultAuthenticator
          extended by com.atlassian.confluence.user.ConfluenceAuthenticator
All Implemented Interfaces:
Authenticator, Initable, Serializable
Direct Known Subclasses:
ConfluenceGroupJoiningAuthenticator

public class ConfluenceAuthenticator
extends DefaultAuthenticator

See Also:
Serialized Form

Field Summary
 
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
ConfluenceAuthenticator()
           
 
Method Summary
protected  boolean authenticate(Principal user, String password)
           
protected  EventManager getEventManager()
           
 Principal getUser(HttpServletRequest request, HttpServletResponse httpServletResponse)
           
protected  Principal getUser(String uid)
           
protected  UserAccessor getUserAccessor()
           
 boolean login(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String username, String password, boolean b)
           
 boolean logout(HttpServletRequest request, HttpServletResponse response)
           
 void setUserAccessor(UserAccessor userAccessor)
           
 
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
decodeCookie, encodeCookie, getAuthType, getCookiePath, getLoginCookieKey, getLoginCookiePath, getLogoutInterceptors, getRoleMapper, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isUserInRole
 
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

ConfluenceAuthenticator

public ConfluenceAuthenticator()
Method Detail

logout

public boolean logout(HttpServletRequest request,
                      HttpServletResponse response)
               throws AuthenticatorException
Specified by:
logout in interface Authenticator
Overrides:
logout in class DefaultAuthenticator
Throws:
AuthenticatorException

login

public boolean login(HttpServletRequest httpServletRequest,
                     HttpServletResponse httpServletResponse,
                     String username,
                     String password,
                     boolean b)
              throws AuthenticatorException
Specified by:
login in interface Authenticator
Overrides:
login in class DefaultAuthenticator
Throws:
AuthenticatorException

authenticate

protected boolean authenticate(Principal user,
                               String password)
Overrides:
authenticate in class 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 DefaultAuthenticator

getUser

public Principal getUser(HttpServletRequest request,
                         HttpServletResponse httpServletResponse)
Specified by:
getUser in interface Authenticator
Overrides:
getUser in class DefaultAuthenticator


Confluence is developed by Atlassian.