org.jasig.cas.authentication
Class DirectMappingAuthenticationManagerImpl
java.lang.Object
org.jasig.cas.authentication.DirectMappingAuthenticationManagerImpl
- All Implemented Interfaces:
- AuthenticationManager
public final class DirectMappingAuthenticationManagerImpl
- extends java.lang.Object
- implements AuthenticationManager
Authentication Manager that provides a direct mapping between credentials
provided and the authentication handler used to authenticate the user.
- Since:
- 3.1
- Version:
- $Revision: 42776 $ $Date: 2008-01-04 09:15:42 -0500 (Fri, 04 Jan 2008) $
- Author:
- Scott Battaglia
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectMappingAuthenticationManagerImpl
public DirectMappingAuthenticationManagerImpl()
authenticate
public Authentication authenticate(Credentials credentials)
throws AuthenticationException
- Description copied from interface:
AuthenticationManager
- Method to validate the credentials provided. On successful validation, a
fully populated Authentication object will be returned. Typically this
will involve resolving a principal and providing any additional
attributes, but specifics are left to the individual implementations to
determine. Failure to authenticate is considered an exceptional case, and
an AuthenticationException is thrown.
- Specified by:
authenticate in interface AuthenticationManager
- Parameters:
credentials - The credentials provided for authentication.
- Returns:
- fully populated Authentication object.
- Throws:
java.lang.IllegalArgumentException - if a mapping cannot be found.
AuthenticationException - if unable to determine validity of
credentials or there is an extenuating circumstance related to
credentials (i.e. Account locked).- 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)
setAuthenticationMetaDataPopulators
public final void setAuthenticationMetaDataPopulators(java.util.List<AuthenticationMetaDataPopulator> authenticationMetaDataPopulators)
Copyright © 2004-2009 Java Architectures Special Interest Group. All Rights Reserved.