Interface AttributeReleaseVoter
- All Superinterfaces:
BiFunction<Saml2UserAuthentication,Attribute, AttributeReleaseVote>
- All Known Implementing Classes:
IncludeAllAttributeReleaseVoter,SwedenConnectAttributeReleaseVoter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AttributeReleaseVoter
extends BiFunction<Saml2UserAuthentication,Attribute,AttributeReleaseVote>
AttributeReleaseVoters are used by the AttributeReleaseManager to check if attributes returned from
AttributeProducers should be released or not.- Author:
- Martin Lindström
-
Method Summary
Modifier and TypeMethodDescriptiondefault AttributeReleaseVoteapply(Saml2UserAuthentication token, Attribute attribute) vote(Saml2UserAuthentication token, Attribute attribute) Tells whether this voter thinks that the suppliedAttributeshould be released or not.Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<Saml2UserAuthentication,Attribute, AttributeReleaseVote>
-
vote
Tells whether this voter thinks that the suppliedAttributeshould be released or not.- Parameters:
token- the authentication tokenattribute- the attribute to vote on- Returns:
- an
AttributeReleaseVote
-