org.jasig.cas.authentication
Class LinkedAuthenticationHandlerAndCredentialsToPrincipalResolverAuthenticationManager

java.lang.Object
  extended by org.jasig.cas.authentication.AbstractAuthenticationManager
      extended by org.jasig.cas.authentication.LinkedAuthenticationHandlerAndCredentialsToPrincipalResolverAuthenticationManager
All Implemented Interfaces:
AuthenticationManager

public class LinkedAuthenticationHandlerAndCredentialsToPrincipalResolverAuthenticationManager
extends AbstractAuthenticationManager

Ensures that all authentication handlers are tried, but if one is tried, the associated CredentialsToPrincipalResolver is used.

Since:
3.3.5
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jasig.cas.authentication.AbstractAuthenticationManager
AbstractAuthenticationManager.Pair<A,B>
 
Field Summary
 
Fields inherited from class org.jasig.cas.authentication.AbstractAuthenticationManager
log
 
Fields inherited from interface org.jasig.cas.authentication.AuthenticationManager
AUTHENTICATION_METHOD_ATTRIBUTE
 
Constructor Summary
LinkedAuthenticationHandlerAndCredentialsToPrincipalResolverAuthenticationManager(java.util.Map<AuthenticationHandler,CredentialsToPrincipalResolver> linkedHandlers)
           
 
Method Summary
protected  AbstractAuthenticationManager.Pair<AuthenticationHandler,Principal> authenticateAndObtainPrincipal(Credentials credentials)
          Follows the same rules as the "authenticate" method (i.e.
 
Methods inherited from class org.jasig.cas.authentication.AbstractAuthenticationManager
authenticate, setAuthenticationMetaDataPopulators
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedAuthenticationHandlerAndCredentialsToPrincipalResolverAuthenticationManager

public LinkedAuthenticationHandlerAndCredentialsToPrincipalResolverAuthenticationManager(java.util.Map<AuthenticationHandler,CredentialsToPrincipalResolver> linkedHandlers)
Method Detail

authenticateAndObtainPrincipal

protected AbstractAuthenticationManager.Pair<AuthenticationHandler,Principal> authenticateAndObtainPrincipal(Credentials credentials)
                                                                                                      throws AuthenticationException
Description copied from class: AbstractAuthenticationManager
Follows the same rules as the "authenticate" method (i.e. should only return a fully populated object, or throw an exception)

Specified by:
authenticateAndObtainPrincipal in class AbstractAuthenticationManager
Parameters:
credentials - the credentials to check
Returns:
the pair of authentication handler and principal. CANNOT be NULL.
Throws:
AuthenticationException - if there is an error authenticating.


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.