Class AssertionConsumerServiceValidator
java.lang.Object
se.swedenconnect.spring.saml.idp.authnrequest.validation.AssertionConsumerServiceValidator
- All Implemented Interfaces:
AuthnRequestValidator
Asserts that the AssertionConsumerService information given in the
AuthnRequest is registered in the SAML
metadata. Updates the Saml2AuthnRequestAuthenticationToken with this information.- Author:
- Martin Lindström
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUriComparator(URIComparator uriComparator) Assigns a customURIComparator.voidvalidate(Saml2AuthnRequestAuthenticationToken authnRequestToken) Asserts that the AssertionConsumerService information given in theAuthnRequestis registered in the SAML metadata.
-
Constructor Details
-
AssertionConsumerServiceValidator
public AssertionConsumerServiceValidator()
-
-
Method Details
-
validate
public void validate(Saml2AuthnRequestAuthenticationToken authnRequestToken) throws UnrecoverableSaml2IdpException Asserts that the AssertionConsumerService information given in theAuthnRequestis registered in the SAML metadata. Updates theSaml2AuthnRequestAuthenticationTokenwith this information.- Specified by:
validatein interfaceAuthnRequestValidator- Parameters:
authnRequestToken- the authentication request token- Throws:
UnrecoverableSaml2IdpException- for errors that can not be signalled back to the SAML SP