Class DefaultIDPAttributeMapper
- java.lang.Object
-
- com.sun.identity.wsfederation.plugins.DefaultAttributeMapper
-
- com.sun.identity.wsfederation.plugins.DefaultIDPAttributeMapper
-
- All Implemented Interfaces:
IDPAttributeMapper
public class DefaultIDPAttributeMapper extends DefaultAttributeMapper implements IDPAttributeMapper
This classDefaultAttributeMapperimplements theIDPAttributeMapperto return the SAMLAttributeobjects that may be inserted in the SAML Assertion. This IDP attribute mapper reads the attribute map configuration defined in the hosted IDP configuration and construct the SAMLAttributeobjects. If the mapped values are not present in the data store, this will try to read from the Single sign-on token.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.wsfederation.plugins.DefaultAttributeMapper
bundle, debug, dsProvider, IDP, role, SP
-
-
Constructor Summary
Constructors Constructor Description DefaultIDPAttributeMapper()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetAttributes(Object session, String hostEntityID, String remoteEntityID, String realm)Returns list of SAMLAttributeobjects for the IDP framework to insert into the generatedAssertion.protected AttributegetSAMLAttribute(String namespace, String name, Set<String> values)Returns the SAMLAttributeobject.-
Methods inherited from class com.sun.identity.wsfederation.plugins.DefaultAttributeMapper
getConfigAttributeMap
-
-
-
-
Method Detail
-
getAttributes
public List getAttributes(Object session, String hostEntityID, String remoteEntityID, String realm) throws WSFederationException
Returns list of SAMLAttributeobjects for the IDP framework to insert into the generatedAssertion.- Specified by:
getAttributesin interfaceIDPAttributeMapper- Parameters:
session- Single sign-on session.hostEntityID-EntityIDof the hosted entity.remoteEntityID-EntityIDof the remote entity.realm- name of the realm.- Returns:
- list of
Attributess of an authenticated user. - Throws:
WSFederationException- if any failure.
-
getSAMLAttribute
protected Attribute getSAMLAttribute(String namespace, String name, Set<String> values) throws WSFederationException
Returns the SAMLAttributeobject.- Parameters:
name- attribute name.values- attribute values.- Throws:
WSFederationException- if any failure.
-
-