|
||||||||||
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.JiraOsUserAuthenticator
public class JiraOsUserAuthenticator
A simple wrapper over Seraphs DefaultAuthenticator
that allows us to jump in on
certain events. It uses OSUsers autnetication mechanisms
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 | |
---|---|
JiraOsUserAuthenticator()
|
Method Summary | |
---|---|
protected boolean |
authenticate(Principal user,
String password)
This is called by Seraph to authenticate the Principal which will in fact be a User
object. |
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator |
---|
decodeCookie, encodeCookie, getAuthType, getCookiePath, getLoginCookieKey, getLoginCookiePath, getLogoutInterceptors, getRoleMapper, getUser, getUser, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isUserInRole, login, logout |
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 JiraOsUserAuthenticator()
Method Detail |
---|
protected boolean authenticate(Principal user, String password)
User
object.
If the user is authenticated, they still need to be authorised and Seraph will make a call to JiraRoleMapper.canLogin(java.security.Principal,
javax.servlet.http.HttpServletRequest)
and hence to LoginManager.authoriseLogin(com.opensymphony.user.User,
javax.servlet.http.HttpServletRequest)
It is that step that authorised the user for access to JIRA
authenticate
in class com.atlassian.seraph.auth.DefaultAuthenticator
user
- the user in playpassword
- the password to authenticate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |