public class DefaultAttributeMapper extends DefaultLibraryIDPAttributeMapper implements AttributeMapper
DefaultLibraryIDPAttributeMapper
bundle, debug, dsProvider, IDP, SP
Constructor and Description |
---|
DefaultAttributeMapper(Map<String,String> attributeMap) |
Modifier and Type | Method and Description |
---|---|
List<Attribute> |
getAttributes(SSOToken token,
Map<String,String> attributeMap)
Gets a list of populated SAML2 Attribute instances.
|
Map<String,String> |
getConfigAttributeMap(String realm,
String hostEntityID,
String role)
This method is called to obtain the attribute mappings defined for the hosted provider corresponding to the entity
id and realm.
|
protected boolean |
isIgnoredProfile(Object session,
String realm)
This method is consulted by the DefaultLibraryIDPAttributeMapper to determine whether to actually look-up keys in
the AttributeMap in the id-repo.
|
getAttributes, getSAMLAttribute, needToEscapeXMLSpecialCharacters
public List<Attribute> getAttributes(SSOToken token, Map<String,String> attributeMap) throws TokenCreationException
AttributeMapper
getAttributes
in interface AttributeMapper
token
- The token corresponding to the subject whose attributes will be returnedattributeMap
- The mapping of saml attributes (keys) to the local AM LDAP attributes (values) Note that in
this implementation, the attributeMap is ignored, as it is provided to the ctor as it needs
to be referenced outside of this method, due to the DefaultLibraryIDPAttributeMapper superclass.
This implementation detail should not change the specifics of the contract, however, in which
the attributeMap is a fundamental constituent.TokenCreationException
protected boolean isIgnoredProfile(Object session, String realm)
isIgnoredProfile
in class DefaultLibraryIDPAttributeMapper
session
- SSOToken to check the profile creation attributes.realm
- The realm for which profile state should be looked-up - will be the realm for the principal for
whom the token is being generated - the realm value corresponds to the realm passed in the super.getAttributes call
above.public Map<String,String> getConfigAttributeMap(String realm, String hostEntityID, String role) throws SAML2Exception
getConfigAttributeMap
in class DefaultAttributeMapper
realm
- realm name. Parameter ignored.hostEntityID
- EntityID
of the hosted provider. Parameter ignored.role
- Parameter ignored.SAML2Exception
- never thrown.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.