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$ $Date$
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(Map<Class<? extends Credentials>,DirectMappingAuthenticationManagerImpl.DirectAuthenticationHandlerMappingHolder> credentialsMapping)
           
 
Methods inherited from class org.jasig.cas.authentication.AbstractAuthenticationManager
authenticate, handleError, 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:
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(Map<Class<? extends Credentials>,DirectMappingAuthenticationManagerImpl.DirectAuthenticationHandlerMappingHolder> credentialsMapping)


Copyright © 2004-2013 Jasig. All Rights Reserved.