public interface SAMLIdentityAssertionNameMapper
To specify an instance of this interface to be used by the SAML Identity Asserter, set the NameMapperClassName attribute.
Classes implementing this interface must have a public no-arg constructor and must be in the system classpath.
Modifier and Type | Method and Description |
---|---|
String |
getGroupAttrName()
Returns the SAML AttributeName that should be used to extract group
information from assertions.
|
String |
getGroupAttrNamespace()
Returns the SAML AttributeNamespace that should be used to extract group
information from assertions.
|
Collection |
mapGroupInfo(SAMLNameMapperInfo info,
ContextHandler handler)
Maps a
SAMLNameMapperInfo to a Collection
of group names. |
String |
mapNameInfo(SAMLNameMapperInfo info,
ContextHandler handler)
Maps a
SAMLNameMapperInfo to a user name. |
String mapNameInfo(SAMLNameMapperInfo info, ContextHandler handler)
SAMLNameMapperInfo
to a user name.info
- The SAMLNameMapperInfo
containing user
and group information from a SAML assertion.handler
- The ContextHandler passed to the SAML Identity Asserter.String
contained the mapped usernameCollection mapGroupInfo(SAMLNameMapperInfo info, ContextHandler handler)
SAMLNameMapperInfo
to a Collection
of group names.info
- The SAMLNameMapperInfo
containing user
and group information from a SAML assertion.handler
- The ContextHandler passed to the SAML Identity Asserter.Collection
containing the mapped group names,
or null if groups were not mapped.String getGroupAttrName()
SAMLNameMapperInfo
with its values.String getGroupAttrNamespace()
SAMLNameMapperInfo
with its values.