Class OpenSaml5AuthenticationProvider.AssertionValidator
java.lang.Object
org.springframework.security.saml2.provider.service.authentication.OpenSaml5AuthenticationProvider.AssertionValidator
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<OpenSaml5AuthenticationProvider.AssertionToken,Saml2ResponseValidatorResult>
- Enclosing class:
- OpenSaml5AuthenticationProvider
public static final class OpenSaml5AuthenticationProvider.AssertionValidator
extends Object
implements org.springframework.core.convert.converter.Converter<OpenSaml5AuthenticationProvider.AssertionToken,Saml2ResponseValidatorResult>
A default implementation of
OpenSaml5AuthenticationProvider's assertion
validator. This does not check the signature as signature verification is performed
by a different component- Since:
- 6.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionAssertionValidator(org.opensaml.saml.saml2.assertion.SAML20AssertionValidator assertionValidator) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Use a builder to configure aspects of the validatorvoidsetValidationContextParameters(Consumer<Map<String, Object>> paramsConsumer) Mutate the map of OpenSAMLValidationContextparameters using the givenparamsConsumerValidate this assertionCreate the default assertion validatorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
AssertionValidator
public AssertionValidator(org.opensaml.saml.saml2.assertion.SAML20AssertionValidator assertionValidator)
-
-
Method Details
-
convert
- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<OpenSaml5AuthenticationProvider.AssertionToken,Saml2ResponseValidatorResult>
-
validate
Validate this assertion- Parameters:
token- the assertion to validate- Returns:
- the validation result
-
setValidationContextParameters
Mutate the map of OpenSAMLValidationContextparameters using the givenparamsConsumer- Parameters:
paramsConsumer- the context parameters mutator
-
withDefaults
Create the default assertion validator- Returns:
- the default assertion validator
-
builder
Use a builder to configure aspects of the validator- Returns:
- the
OpenSaml5AuthenticationProvider.AssertionValidator.Builderfor configurationOpenSaml5AuthenticationProvider.AssertionValidator
-