public class DefaultSPAttributeMapper extends DefaultAttributeMapper implements SPAttributeMapper
DefaultSPAttribute
implements
SPAttributeMapper
for mapping the assertion attributes
to local attributes configured in the provider configuration.bundle, debug, dsProvider, IDP, SP
Constructor and Description |
---|
DefaultSPAttributeMapper()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Set<String>> |
getAttributes(List<Attribute> attributes,
String userID,
String hostEntityID,
String remoteEntityID,
String realm)
Returns attribute map for the given list of
Attribute
objects. |
protected boolean |
needToUnescapeXMLSpecialCharacters(String hostEntityID,
String remoteEntityID,
String realm)
Decides whether it needs to unescape XML special characters for attribute
values or not.
|
getConfigAttributeMap
public Map<String,Set<String>> getAttributes(List<Attribute> attributes, String userID, String hostEntityID, String remoteEntityID, String realm) throws SAML2Exception
Attribute
objects.getAttributes
in interface SPAttributeMapper
attributes
- list Attribute
objects.userID
- universal identifier or distinguished name(DN) of the user.hostEntityID
- EntityID
of the hosted provider.remoteEntityID
- EntityID
of the remote provider.realm
- realm name.SAML2Exception
- if any failure.protected boolean needToUnescapeXMLSpecialCharacters(String hostEntityID, String remoteEntityID, String realm)
hostEntityID
- Entity ID for hosted provider.remoteEntityID
- Entity ID for remote provider.realm
- the providers are in.true
if it should unescape special characters for
attribute values; false
otherwise.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.