com.atlassian.crowd.integration.seraph
Class CrowdAuthenticator

java.lang.Object
  extended by DefaultAuthenticator
      extended by com.atlassian.crowd.integration.seraph.CrowdAuthenticator
Direct Known Subclasses:
BambooAuthenticator, ConfluenceAuthenticator, JIRAAuthenticator

public abstract class CrowdAuthenticator
extends DefaultAuthenticator


Field Summary
protected static String PRINCIPAL_KEY
           
 
Constructor Summary
CrowdAuthenticator()
           
 
Method Summary
protected  boolean authenticate(Principal user, String password)
          Override the super method, always return true so that authentication is not called twice when a user logs in.
 Principal getUser(HttpServletRequest request, HttpServletResponse response)
           
protected  Principal getUserFromSession(HttpSession session)
           
protected  boolean isAuthenticated(HttpServletRequest request, HttpServletResponse response)
           
 boolean login(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String username, String password)
           
 boolean login(HttpServletRequest request, HttpServletResponse response, String username, String password, boolean b)
           
 boolean logout(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRINCIPAL_KEY

protected static final String PRINCIPAL_KEY
Constructor Detail

CrowdAuthenticator

public CrowdAuthenticator()
Method Detail

authenticate

protected boolean authenticate(Principal user,
                               String password)
Override the super method, always return true so that authentication is not called twice when a user logs in.


login

public boolean login(HttpServletRequest request,
                     HttpServletResponse response,
                     String username,
                     String password,
                     boolean b)
              throws AuthenticatorException
Throws:
AuthenticatorException

login

public boolean login(HttpServletRequest httpServletRequest,
                     HttpServletResponse httpServletResponse,
                     String username,
                     String password)
              throws AuthenticatorException
Throws:
AuthenticatorException

logout

public boolean logout(HttpServletRequest request,
                      HttpServletResponse response)
               throws AuthenticatorException
Throws:
AuthenticatorException

isAuthenticated

protected boolean isAuthenticated(HttpServletRequest request,
                                  HttpServletResponse response)

getUser

public Principal getUser(HttpServletRequest request,
                         HttpServletResponse response)

getUserFromSession

protected Principal getUserFromSession(HttpSession session)


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.