public interface SAML2AttributeManager extends AttributeManager
The SAML2AttributeManager is responsible to provide custom attributes, based on the SAML 2.0 version, in order to include them in the assertions issued by an identity provider.
Modifier and Type | Method and Description |
---|---|
Set<AttributeStatementType> |
getAttributes(AuthnRequestType authnRequestType,
Principal userPrincipal)
Returns a list of
AttributeStatementType based on a incoming
AuthnRequestType and the authenticated Principal . |
getAttributes
Set<AttributeStatementType> getAttributes(AuthnRequestType authnRequestType, Principal userPrincipal)
Returns a list of AttributeStatementType
based on a incoming
AuthnRequestType
and the authenticated Principal
.
This gives a lot of flexibility about how attributes are created and populated into the assertion.
authnRequestType
- The current authentication request.userPrincipal
- The authenticated principalCopyright © 2019. All rights reserved.