org.jasig.cas.authentication
Class DirectMappingAuthenticationManagerImpl

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

public final class DirectMappingAuthenticationManagerImpl
extends AbstractAuthenticationManager

Authentication Manager that provides a direct mapping between credentials provided and the authentication handler used to authenticate the user.

Since:
3.1
Version:
$Revision: 47522 $ $Date: 2009-12-14 23:33:36 -0500 (Mon, 14 Dec 2009) $
Author:
Scott Battaglia

Nested Class Summary
static class DirectMappingAuthenticationManagerImpl.DirectAuthenticationHandlerMappingHolder
           
 
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
DirectMappingAuthenticationManagerImpl()
           
 
Method Summary
protected  AbstractAuthenticationManager.Pair<AuthenticationHandler,Principal> authenticateAndObtainPrincipal(Credentials credentials)
          Follows the same rules as the "authenticate" method (i.e.
 void setCredentialsMapping(java.util.Map<java.lang.Class<? extends Credentials>,DirectMappingAuthenticationManagerImpl.DirectAuthenticationHandlerMappingHolder> credentialsMapping)
           
 
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

DirectMappingAuthenticationManagerImpl

public DirectMappingAuthenticationManagerImpl()
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:
java.lang.IllegalArgumentException - if a mapping cannot be found.
AuthenticationException - if there is an error authenticating.
See Also:
AuthenticationManager.authenticate(org.jasig.cas.authentication.principal.Credentials)

setCredentialsMapping

public final void setCredentialsMapping(java.util.Map<java.lang.Class<? extends Credentials>,DirectMappingAuthenticationManagerImpl.DirectAuthenticationHandlerMappingHolder> credentialsMapping)


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