Package com.sun.identity.saml2.plugins
Class DefaultSPAttributeMapper
- java.lang.Object
-
- com.sun.identity.saml2.plugins.DefaultAttributeMapper
-
- com.sun.identity.saml2.plugins.DefaultSPAttributeMapper
-
- All Implemented Interfaces:
SPAttributeMapper
public class DefaultSPAttributeMapper extends DefaultAttributeMapper implements SPAttributeMapper
This classDefaultSPAttributeimplementsSPAttributeMapperfor mapping the assertion attributes to local attributes configured in the provider configuration.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml2.plugins.DefaultAttributeMapper
bundle, debug, dsProvider, IDP, SP
-
-
Constructor Summary
Constructors Constructor Description DefaultSPAttributeMapper()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Set<String>>getAttributes(List<Attribute> attributes, String userID, String hostEntityID, String remoteEntityID, String realm)Returns attribute map for the given list ofAttributeobjects.protected booleanneedToUnescapeXMLSpecialCharacters(String hostEntityID, String remoteEntityID, String realm)Decides whether it needs to unescape XML special characters for attribute values or not.-
Methods inherited from class com.sun.identity.saml2.plugins.DefaultAttributeMapper
getConfigAttributeMap
-
-
-
-
Method Detail
-
getAttributes
public Map<String,Set<String>> getAttributes(List<Attribute> attributes, String userID, String hostEntityID, String remoteEntityID, String realm) throws SAML2Exception
Returns attribute map for the given list ofAttributeobjects.- Specified by:
getAttributesin interfaceSPAttributeMapper- Parameters:
attributes- listAttributeobjects.userID- universal identifier or distinguished name(DN) of the user.hostEntityID-EntityIDof the hosted provider.remoteEntityID-EntityIDof the remote provider.realm- realm name.- Returns:
- a map of mapped attribute value pair. This map has the key as the attribute name and the value as the attribute value
- Throws:
SAML2Exception- if any failure.
-
needToUnescapeXMLSpecialCharacters
protected boolean needToUnescapeXMLSpecialCharacters(String hostEntityID, String remoteEntityID, String realm)
Decides whether it needs to unescape XML special characters for attribute values or not.- Parameters:
hostEntityID- Entity ID for hosted provider.remoteEntityID- Entity ID for remote provider.realm- the providers are in.- Returns:
trueif it should unescape special characters for attribute values;falseotherwise.
-
-