Class DefaultAttributeReleaseManager
java.lang.Object
se.swedenconnect.spring.saml.idp.attributes.release.DefaultAttributeReleaseManager
- All Implemented Interfaces:
AttributeProducer
,AttributeReleaseManager
Default implementation of the
AttributeReleaseManager
interface.- Author:
- Martin Lindström
-
Constructor Summary
ConstructorDescriptionDefaultAttributeReleaseManager
(List<AttributeProducer> producers, List<AttributeReleaseVoter> voters) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets an immutable list of allAttributeProducer
s.Gets an immutable list of allAttributeReleaseVoter
s.List
<org.opensaml.saml.saml2.core.Attribute> releaseAttributes
(Saml2UserAuthentication userAuthentication) Determines which attributes to release based on the supplied token.
-
Constructor Details
-
DefaultAttributeReleaseManager
public DefaultAttributeReleaseManager(List<AttributeProducer> producers, List<AttributeReleaseVoter> voters) Constructor.- Parameters:
producers
- the list of producersvoters
- the list of voters (if none is supplied, an "include-all" voter is used)
-
-
Method Details
-
releaseAttributes
public List<org.opensaml.saml.saml2.core.Attribute> releaseAttributes(Saml2UserAuthentication userAuthentication) Determines which attributes to release based on the supplied token.- Specified by:
releaseAttributes
in interfaceAttributeProducer
- Parameters:
userAuthentication
- the user authentication token- Returns:
- a (possibly empty) list of attributes
-
getAttributeProducers
Gets an immutable list of allAttributeProducer
s.- Specified by:
getAttributeProducers
in interfaceAttributeReleaseManager
- Returns:
- a list of
AttributeProducer
s
-
getAttributeReleaseVoters
Gets an immutable list of allAttributeReleaseVoter
s.- Specified by:
getAttributeReleaseVoters
in interfaceAttributeReleaseManager
- Returns:
- a list of
AttributeReleaseVoter
s
-