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
ConstructorsConstructorDescriptionDefaultAttributeReleaseManager(List<AttributeProducer> producers, List<AttributeReleaseVoter> voters) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets an immutable list of allAttributeProducers.Gets an immutable list of allAttributeReleaseVoters.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
Determines which attributes to release based on the supplied token.- Specified by:
releaseAttributesin interfaceAttributeProducer- Parameters:
userAuthentication- the user authentication token- Returns:
- a (possibly empty) list of attributes
-
getAttributeProducers
Gets an immutable list of allAttributeProducers.- Specified by:
getAttributeProducersin interfaceAttributeReleaseManager- Returns:
- a list of
AttributeProducers
-
getAttributeReleaseVoters
Gets an immutable list of allAttributeReleaseVoters.- Specified by:
getAttributeReleaseVotersin interfaceAttributeReleaseManager- Returns:
- a list of
AttributeReleaseVoters
-