public interface SAML2CredentialAttributeMapper
To specify an instance of this interface to be used by the SAML2 Credential Mapper, set the NameMapperClassName attribute.
Classes that implement this interface must have a public no-arg constructor and must be in the system classpath.
Modifier and Type | Method | Description |
---|---|---|
java.util.Collection<SAML2AttributeStatementInfo> |
mapAttributes(javax.security.auth.Subject subject,
ContextHandler handler) |
Maps attribute information from any application-specific sources to a collection of
SAML2AttributeStatementInfo , each of which will be used to construct an
<AttributeStatement> element in a SAML 2.0 assertion. |
java.util.Collection<SAML2AttributeStatementInfo> mapAttributes(javax.security.auth.Subject subject, ContextHandler handler)
SAML2AttributeStatementInfo
, each of which will be used to construct an
<AttributeStatement>
element in a SAML 2.0 assertion.subject
- represents an authenticated user with which the attributes are associatedhandler
- the context handler that can hold additional information for attribute mapping