com.atlassian.bamboo.user.authentication
Class BambooAuthenticator

java.lang.Object
  extended by com.atlassian.seraph.auth.AbstractAuthenticator
      extended by com.atlassian.seraph.auth.DefaultAuthenticator
          extended by com.atlassian.bamboo.user.authentication.BambooAuthenticator
All Implemented Interfaces:
com.atlassian.seraph.auth.Authenticator, com.atlassian.seraph.Initable, java.io.Serializable

public class BambooAuthenticator
extends com.atlassian.seraph.auth.DefaultAuthenticator

Only authenticate when container has been setup

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
BambooAuthenticator()
           
 
Method Summary
protected  boolean authenticate(java.security.Principal user, java.lang.String password)
           
 BambooUserManager getBambooUserManager()
           
protected  java.security.Principal getUser(java.lang.String uid)
           
 boolean login(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String username, java.lang.String password, boolean cookie)
           
 void setBambooUserManager(BambooUserManager bambooUserManager)
           
 
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUser, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, isPrincipalAlreadyInSessionContext, isUserInRole, logout, putPrincipalInSessionContext, refreshPrincipalObtainedFromSession, 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

BambooAuthenticator

public BambooAuthenticator()
Method Detail

login

public boolean login(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     java.lang.String username,
                     java.lang.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.seraph.auth.DefaultAuthenticator
Throws:
com.atlassian.seraph.auth.AuthenticatorException

authenticate

protected boolean authenticate(java.security.Principal user,
                               java.lang.String password)
Specified by:
authenticate in class com.atlassian.seraph.auth.DefaultAuthenticator

getUser

protected java.security.Principal getUser(java.lang.String uid)
Specified by:
getUser in class com.atlassian.seraph.auth.DefaultAuthenticator

getBambooUserManager

public BambooUserManager getBambooUserManager()

setBambooUserManager

public void setBambooUserManager(BambooUserManager bambooUserManager)


Copyright © 2012 Atlassian. All Rights Reserved.