Class SignServiceSsoVoter
java.lang.Object
se.swedenconnect.spring.saml.idp.authentication.provider.SignServiceSsoVoter
- All Implemented Interfaces:
SsoVoter
An
SsoVoter that ensures that SAML service providers that are registered as "signature services" never get
SSO. This is a function of the Swedish eID
Framework.- Author:
- Martin Lindström
-
Nested Class Summary
Nested classes/interfaces inherited from interface se.swedenconnect.spring.saml.idp.authentication.provider.SsoVoter
SsoVoter.Vote -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmayReuse(Saml2UserAuthentication userAuthn, Saml2UserAuthenticationInputToken token, Collection<String> allowedAuthnContexts) Predicate that tells whether the suppliedAuthenticationobject may be used in SSO (according to the voter's logic).
-
Constructor Details
-
SignServiceSsoVoter
public SignServiceSsoVoter()
-
-
Method Details
-
mayReuse
public SsoVoter.Vote mayReuse(Saml2UserAuthentication userAuthn, Saml2UserAuthenticationInputToken token, Collection<String> allowedAuthnContexts) Predicate that tells whether the suppliedAuthenticationobject may be used in SSO (according to the voter's logic).- Specified by:
mayReusein interfaceSsoVoter- Parameters:
userAuthn- the user authentication objecttoken- the authentication input token (for the current authentication)allowedAuthnContexts- a collection of the allowed authentication contexts- Returns:
SsoVoter.Vote.OKif the voter is OK with re-using the authentication,SsoVoter.Vote.DENYif the voter states that the authentication may noy be re-used, andSsoVoter.Vote.DONT_KNOWif the voter doesn't know
-