org.jasig.cas.authentication
Class SamlAuthenticationMetaDataPopulator

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

public class SamlAuthenticationMetaDataPopulator
extends 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$ $Date$
Author:
Scott Battaglia

Field Summary
static String ATTRIBUTE_AUTHENTICATION_METHOD
           
static String AUTHN_METHOD_PASSWORD
           
static String AUTHN_METHOD_SSL_TLS_CLIENT
           
static String AUTHN_METHOD_UNSPECIFIED
           
static String AUTHN_METHOD_X509_PUBLICKEY
           
 
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(Map<String,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 String ATTRIBUTE_AUTHENTICATION_METHOD
See Also:
Constant Field Values

AUTHN_METHOD_PASSWORD

public static final String AUTHN_METHOD_PASSWORD
See Also:
Constant Field Values

AUTHN_METHOD_SSL_TLS_CLIENT

public static final String AUTHN_METHOD_SSL_TLS_CLIENT
See Also:
Constant Field Values

AUTHN_METHOD_X509_PUBLICKEY

public static final String AUTHN_METHOD_X509_PUBLICKEY
See Also:
Constant Field Values

AUTHN_METHOD_UNSPECIFIED

public static final String AUTHN_METHOD_UNSPECIFIED
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(Map<String,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-2013 Jasig. All Rights Reserved.