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)
AttributeManager
getAttributes
in interface AttributeManager
userPrincipal
- 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)
SAML2AttributeManager
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.
getAttributes
in interface SAML2AttributeManager
authnRequestType
- The current authentication request.userPrincipal
- The authenticated principalCopyright © 2016. All rights reserved.