Class SwedenConnectAttributeReleaseVoter
java.lang.Object
se.swedenconnect.spring.saml.idp.attributes.release.SwedenConnectAttributeReleaseVoter
- All Implemented Interfaces:
BiFunction<Saml2UserAuthentication,
,org.opensaml.saml.saml2.core.Attribute, AttributeReleaseVote> AttributeReleaseVoter
A voter functioning according to the rules specified in
Technical Specifications for the Swedish eID
Framework.
- Author:
- Martin Lindström
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvote
(Saml2UserAuthentication token, org.opensaml.saml.saml2.core.Attribute attribute) Applies the following rules: If the attribute is "urn:oid:1.2.752.29.4.13" (personalIdentityNumber) and the contents is a Swedish coordination number (as opposed to the civic registration number) we require that the SP has opted in to received coordination numbers. TODO ...Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.swedenconnect.spring.saml.idp.attributes.release.AttributeReleaseVoter
apply
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
SwedenConnectAttributeReleaseVoter
public SwedenConnectAttributeReleaseVoter()
-
-
Method Details
-
vote
public AttributeReleaseVote vote(Saml2UserAuthentication token, org.opensaml.saml.saml2.core.Attribute attribute) Applies the following rules:- If the attribute is "urn:oid:1.2.752.29.4.13" (personalIdentityNumber) and the contents is a Swedish coordination number (as opposed to the civic registration number) we require that the SP has opted in to received coordination numbers.
- TODO ...
- Specified by:
vote
in interfaceAttributeReleaseVoter
- Parameters:
token
- the authentication tokenattribute
- the attribute to vote on- Returns:
- an
AttributeReleaseVote
-