org.jasig.cas.authentication
Class SamlAuthenticationMetaDataPopulator

java.lang.Object
  extended by org.jasig.cas.authentication.SamlAuthenticationMetaDataPopulator
All Implemented Interfaces:
AuthenticationMetaDataPopulator

public class SamlAuthenticationMetaDataPopulator
extends java.lang.Object
implements AuthenticationMetaDataPopulator

AuthenticationMetaDataPopulator to retrieve the Authentication Type.

Note: Authentication Methods are exposed under the key: samlAuthenticationStatement::authMethod in the Authentication attributes map.

Since:
3.1
Version:
$Revision: 46104 $ $Date: 2009-05-22 13:37:05 -0400 (Fri, 22 May 2009) $
Author:
Scott Battaglia

Field Summary
static java.lang.String ATTRIBUTE_AUTHENTICATION_METHOD
           
 
Constructor Summary
SamlAuthenticationMetaDataPopulator()
           
 
Method Summary
 Authentication populateAttributes(Authentication authentication, Credentials credentials)
          Provided with an Authentication object and the original credentials presented, provide any additional attributes to the Authentication object.
 void setUserDefinedMappings(java.util.Map<java.lang.String,java.lang.String> userDefinedMappings)
          Map of user-defined mappings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_AUTHENTICATION_METHOD

public static final java.lang.String ATTRIBUTE_AUTHENTICATION_METHOD
See Also:
Constant Field Values
Constructor Detail

SamlAuthenticationMetaDataPopulator

public SamlAuthenticationMetaDataPopulator()
Method Detail

populateAttributes

public final Authentication populateAttributes(Authentication authentication,
                                               Credentials credentials)
Description copied from interface: AuthenticationMetaDataPopulator
Provided with an Authentication object and the original credentials presented, provide any additional attributes to the Authentication object. Implementations have the option of returning the same Authentication object, or a new one.

Specified by:
populateAttributes in interface AuthenticationMetaDataPopulator
Parameters:
authentication - The Authentication to potentially augment with additional attributes.
Returns:
the original Authentication object or a new Authentication object.

setUserDefinedMappings

public void setUserDefinedMappings(java.util.Map<java.lang.String,java.lang.String> userDefinedMappings)
Map of user-defined mappings. Note it is possible to over-ride the defaults. Mapping should be of the following type:

( )

Example: (<"org.jasig.cas.authentication.principal.HttpBasedServiceCredentials"> )

Parameters:
userDefinedMappings - map of user defined authentication types.


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