public class ConfluenceAuthenticator
extends com.atlassian.seraph.auth.DefaultAuthenticator
Constructor and Description |
---|
ConfluenceAuthenticator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
authenticate(Principal user,
String password) |
protected boolean |
authoriseUserAndEstablishSession(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Principal principal) |
protected com.atlassian.event.api.EventPublisher |
getEventPublisher() |
Principal |
getUser(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected ConfluenceUser |
getUser(String uid) |
protected UserAccessor |
getUserAccessor() |
protected boolean |
isPrincipalAlreadyInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal) |
boolean |
login(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String username,
String password,
boolean setRememberMeCookie) |
boolean |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
putPrincipalInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal) |
protected Principal |
refreshPrincipalObtainedFromSession(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal) |
void |
setUserAccessor(UserAccessor userAccessor) |
getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, removePrincipalFromSessionContext
public boolean logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws com.atlassian.seraph.auth.AuthenticatorException
logout
in interface com.atlassian.seraph.auth.Authenticator
logout
in class com.atlassian.seraph.auth.DefaultAuthenticator
com.atlassian.seraph.auth.AuthenticatorException
public boolean login(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String username, String password, boolean setRememberMeCookie) throws com.atlassian.seraph.auth.AuthenticatorException
login
in interface com.atlassian.seraph.auth.Authenticator
login
in class com.atlassian.seraph.auth.DefaultAuthenticator
com.atlassian.seraph.auth.AuthenticatorException
protected boolean authenticate(Principal user, String password) throws com.atlassian.seraph.auth.AuthenticatorException
authenticate
in class com.atlassian.seraph.auth.DefaultAuthenticator
com.atlassian.seraph.auth.AuthenticatorException
protected boolean isPrincipalAlreadyInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest, Principal principal)
isPrincipalAlreadyInSessionContext
in class com.atlassian.seraph.auth.DefaultAuthenticator
protected void putPrincipalInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest, Principal principal)
putPrincipalInSessionContext
in class com.atlassian.seraph.auth.DefaultAuthenticator
protected Principal refreshPrincipalObtainedFromSession(javax.servlet.http.HttpServletRequest httpServletRequest, Principal principal)
refreshPrincipalObtainedFromSession
in class com.atlassian.seraph.auth.DefaultAuthenticator
protected com.atlassian.event.api.EventPublisher getEventPublisher()
public void setUserAccessor(UserAccessor userAccessor)
protected UserAccessor getUserAccessor()
protected ConfluenceUser getUser(String uid)
getUser
in class com.atlassian.seraph.auth.DefaultAuthenticator
public Principal getUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse httpServletResponse)
getUser
in interface com.atlassian.seraph.auth.Authenticator
getUser
in class com.atlassian.seraph.auth.DefaultAuthenticator
protected boolean authoriseUserAndEstablishSession(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, Principal principal)
authoriseUserAndEstablishSession
in class com.atlassian.seraph.auth.DefaultAuthenticator
Copyright © 2003–2017 Atlassian. All rights reserved.