org.acegisecurity
Class AbstractAuthenticationManager

java.lang.Object
  extended by org.acegisecurity.AbstractAuthenticationManager
All Implemented Interfaces:
AuthenticationManager
Direct Known Subclasses:
MockAuthenticationManager, ProviderManager

public abstract class AbstractAuthenticationManager
extends Object
implements AuthenticationManager

An abstract implementation of the AuthenticationManager.

Version:
$Id: AbstractAuthenticationManager.java 2350 2007-12-07 16:20:31Z luke_t $
Author:
Wesley Hall

Constructor Summary
AbstractAuthenticationManager()
           
 
Method Summary
 Authentication authenticate(Authentication authRequest)
          An implementation of the authenticate method that calls the abstract method doAuthenticatation to do its work.
protected abstract  Authentication doAuthentication(Authentication authentication)
          Concrete implementations of this class override this method to provide the authentication service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAuthenticationManager

public AbstractAuthenticationManager()
Method Detail

authenticate

public final Authentication authenticate(Authentication authRequest)
                                  throws AuthenticationException

An implementation of the authenticate method that calls the abstract method doAuthenticatation to do its work.

If doAuthenticate throws an AuthenticationException then the exception is populated with the failed Authentication object that failed.

Specified by:
authenticate in interface AuthenticationManager
Parameters:
authRequest - the authentication request object
Returns:
a fully authenticated object including credentials
Throws:
AuthenticationException - if authentication fails

doAuthentication

protected abstract Authentication doAuthentication(Authentication authentication)
                                            throws AuthenticationException

Concrete implementations of this class override this method to provide the authentication service.

The contract for this method is documented in the AuthenticationManager.authenticate(Authentication).

Parameters:
authentication - the authentication request object
Returns:
a fully authenticated object including credentials
Throws:
AuthenticationException - if authentication fails


Copyright © 2004-2007 Interface21, Inc. All Rights Reserved.