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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setUriComparator
(net.shibboleth.shared.net.URIComparator uriComparator) Assigns a customURIComparator
.void
validate
(Saml2AuthnRequestAuthenticationToken authnRequestToken) Asserts that the AssertionConsumerService information given in theAuthnRequest
is 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 theAuthnRequest
is registered in the SAML metadata. Updates theSaml2AuthnRequestAuthenticationToken
with this information.- Specified by:
validate
in interfaceAuthnRequestValidator
- Parameters:
authnRequestToken
- the authentication request token- Throws:
UnrecoverableSaml2IdpException
- for errors that can not be signalled back to the SAML SP