public interface SAMLCredentialAttributeMapper
To specify an instance of this interface to be used by the SAML Credential Mapper, 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 | Description |
---|---|---|
java.util.Collection<SAMLAttributeStatementInfo> |
mapAttributes(javax.security.auth.Subject subject,
ContextHandler handler) |
Maps a
Subject to a set of values used to construct a
SAMLAttributeStatementInfo element for a SAML assertion. |
java.util.Collection<SAMLAttributeStatementInfo> mapAttributes(javax.security.auth.Subject subject, ContextHandler handler)
Subject
to a set of values used to construct a
SAMLAttributeStatementInfo
element for a SAML assertion. The returned
Collection
contains SAMLAttributeStatementInfo
elements, which will be used to construct a SAML AttributeStatement
for the SAML assertion.subject
- The Subject
that should be mapped.handler
- The ContextHandler
passed to the SAML Credential Mapper.Collection
containing SAMLAttributeStatementInfo
instances, or null
if no mapping is made.