Interface AttributeReleaseVoter
- All Superinterfaces:
BiFunction<Saml2UserAuthentication,
org.opensaml.saml.saml2.core.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,org.opensaml.saml.saml2.core.Attribute,AttributeReleaseVote>
AttributeReleaseVoter
s are used by the AttributeReleaseManager
to check if attributes returned from
AttributeProducer
s should be released or not.- Author:
- Martin Lindström
-
Method Summary
Modifier and TypeMethodDescriptiondefault AttributeReleaseVote
apply
(Saml2UserAuthentication token, org.opensaml.saml.saml2.core.Attribute attribute) vote
(Saml2UserAuthentication token, org.opensaml.saml.saml2.core.Attribute attribute) Tells whether this voter thinks that the suppliedAttribute
should be released or not.Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
apply
default AttributeReleaseVote apply(Saml2UserAuthentication token, org.opensaml.saml.saml2.core.Attribute attribute) - Specified by:
apply
in interfaceBiFunction<Saml2UserAuthentication,
org.opensaml.saml.saml2.core.Attribute, AttributeReleaseVote>
-
vote
AttributeReleaseVote vote(Saml2UserAuthentication token, org.opensaml.saml.saml2.core.Attribute attribute) Tells whether this voter thinks that the suppliedAttribute
should be released or not.- Parameters:
token
- the authentication tokenattribute
- the attribute to vote on- Returns:
- an
AttributeReleaseVote
-