public class DelegatedAttributeManager extends Object implements SAML2AttributeManager
| Constructor and Description |
|---|
DelegatedAttributeManager(AttributeManager delegate,
List<String> attributeKeys) |
| 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. |
Map<String,Object> |
getAttributes(Principal userPrincipal,
List<String> attributeKeys)
Given a set of keys, get back attributes
|
Map<String,Object> |
getAttributesMap(AuthnRequestType authnRequestType,
Principal userPrincipal) |
public DelegatedAttributeManager(AttributeManager delegate, List<String> attributeKeys)
public Map<String,Object> getAttributes(Principal userPrincipal, List<String> attributeKeys)
AttributeManagergetAttributes in interface AttributeManageruserPrincipal - Principal for whom attributes need to be retrievedAttributeManager.getAttributes(Principal, List)public Map<String,Object> getAttributesMap(AuthnRequestType authnRequestType, Principal userPrincipal)
public Set<AttributeStatementType> getAttributes(AuthnRequestType authnRequestType, Principal userPrincipal)
SAML2AttributeManagerReturns 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.
getAttributes in interface SAML2AttributeManagerauthnRequestType - The current authentication request.userPrincipal - The authenticated principalCopyright © 2021. All rights reserved.