Class AuthnRequestEncryptCapabilitiesValidator
java.lang.Object
se.swedenconnect.spring.saml.idp.authnrequest.validation.AuthnRequestEncryptCapabilitiesValidator
- All Implemented Interfaces:
AuthnRequestValidator
public class AuthnRequestEncryptCapabilitiesValidator
extends Object
implements AuthnRequestValidator
An
AuthnRequestValidator
that asserts that the SP has capabilities to receive an encrypted assertion.- Author:
- Martin Lindström
-
Constructor Summary
ConstructorDescriptionAuthnRequestEncryptCapabilitiesValidator
(boolean encryptedAssertions) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(Saml2AuthnRequestAuthenticationToken authnRequestToken) Performs validation of a feature/requirement regarding the supplied SAML 2 authentication request.
-
Constructor Details
-
AuthnRequestEncryptCapabilitiesValidator
public AuthnRequestEncryptCapabilitiesValidator(boolean encryptedAssertions) Constructor.- Parameters:
encryptedAssertions
- whether assertions are encrypted
-
-
Method Details
-
validate
public void validate(Saml2AuthnRequestAuthenticationToken authnRequestToken) throws UnrecoverableSaml2IdpException, Saml2ErrorStatusException Performs validation of a feature/requirement regarding the supplied SAML 2 authentication request.The method may update the supplied token with information useful in later stages.
- Specified by:
validate
in interfaceAuthnRequestValidator
- Parameters:
authnRequestToken
- the authentication request token- Throws:
UnrecoverableSaml2IdpException
- for errors that can not be signalled back to the SAML SPSaml2ErrorStatusException
- for errors that should be sent as SAML error responses
-