Class BambooAuthenticator

  • All Implemented Interfaces:
    com.atlassian.seraph.auth.Authenticator, com.atlassian.seraph.Initable, 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_IN_USER_ID_KEY, LOGGED_OUT_KEY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean authenticate​(Principal user, String password)  
      protected Principal getUser​(String uid)  
      boolean login​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @Nullable String username, String password, boolean cookie)  
      • Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator

        authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getPrincipalFromSession, getRememberMeService, getRoleMapper, getUser, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, isPrincipalAlreadyInSessionContext, logout, putPrincipalInSessionContext, refreshPrincipalObtainedFromSession, removePrincipalFromSessionContext
      • Methods inherited from class com.atlassian.seraph.auth.AbstractAuthenticator

        destroy, getConfig, getRemoteUser, getUser, login
    • Constructor Detail

      • BambooAuthenticator

        public BambooAuthenticator()
    • Method Detail

      • login

        public boolean login​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             @Nullable
                             @Nullable String username,
                             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​(Principal user,
                                       String password)
        Specified by:
        authenticate in class com.atlassian.seraph.auth.DefaultAuthenticator
      • getUser

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