|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.seraph.auth.AbstractAuthenticator com.atlassian.seraph.auth.DefaultAuthenticator com.atlassian.jira.security.login.JiraSeraphAuthenticator
public class JiraSeraphAuthenticator
JIRA's standard implementation of Seraph's Authenticator interface.
It uses Crowd Embedded to implement the abstract methods of Seraph's default base implementation.
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 | |
---|---|
JiraSeraphAuthenticator()
|
Method Summary | |
---|---|
protected boolean |
authenticate(Principal user,
String password)
|
protected Principal |
getUser(String username)
|
protected Principal |
getUserFromBasicAuthentication(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
|
protected Principal |
refreshPrincipalObtainedFromSession(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal)
This is called to refresh the Principal object that has been retreived from the HTTP session. |
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator |
---|
authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUser, getUserFromCookie, getUserFromSession, init, isAuthorised, isPrincipalAlreadyInSessionContext, isUserInRole, login, logout, 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 |
---|
public JiraSeraphAuthenticator()
Method Detail |
---|
protected Principal getUser(String username)
getUser
in class com.atlassian.seraph.auth.DefaultAuthenticator
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 Principal refreshPrincipalObtainedFromSession(javax.servlet.http.HttpServletRequest httpServletRequest, Principal principal)
getUser(String)
again to get a fresh user.
refreshPrincipalObtainedFromSession
in class com.atlassian.seraph.auth.DefaultAuthenticator
httpServletRequest
- the HTTP request in playprincipal
- the Principal in play
protected Principal getUserFromBasicAuthentication(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
getUserFromBasicAuthentication
in class com.atlassian.seraph.auth.DefaultAuthenticator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |