Class SwedenConnectAttributeReleaseVoter
java.lang.Object
se.swedenconnect.spring.saml.idp.attributes.release.SwedenConnectAttributeReleaseVoter
- All Implemented Interfaces:
BiFunction<Saml2UserAuthentication,,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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvote(Saml2UserAuthentication token, 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, waitMethods inherited from interface se.swedenconnect.spring.saml.idp.attributes.release.AttributeReleaseVoter
applyMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
SwedenConnectAttributeReleaseVoter
public SwedenConnectAttributeReleaseVoter()
-
-
Method Details
-
vote
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:
votein interfaceAttributeReleaseVoter- Parameters:
token- the authentication tokenattribute- the attribute to vote on- Returns:
- an
AttributeReleaseVote
-