@ThreadSafe public abstract class AbstractSubjectConfirmationValidator extends Object implements SubjectConfirmationValidator
SubjectConfirmationValidator
implementations.
This class takes care of processing the NotBefore
, NotOnOrAfter
,
Recipient
, and Address
checks.
Supports the following ValidationContext
static parameters:
SAML2AssertionValidationParameters.SC_VALID_ADDRESSES
:
Required.
SAML2AssertionValidationParameters.SC_VALID_RECIPIENTS
:
Required.
Supports the following ValidationContext
dynamic parameters:
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
Constructor and Description |
---|
AbstractSubjectConfirmationValidator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ValidationResult |
doValidate(SubjectConfirmation confirmation,
Assertion assertion,
ValidationContext context)
Performs any further validation required for the specific confirmation method implementation.
|
ValidationResult |
validate(SubjectConfirmation confirmation,
Assertion assertion,
ValidationContext context) |
protected ValidationResult |
validateAddress(SubjectConfirmation confirmation,
Assertion assertion,
ValidationContext context)
Validates the
Address condition of the SubjectConfirmationData , if any is present. |
protected ValidationResult |
validateNotBefore(SubjectConfirmation confirmation,
Assertion assertion,
ValidationContext context)
Validates the
NotBefore condition of the SubjectConfirmationData , if any is present. |
protected ValidationResult |
validateNotOnOrAfter(SubjectConfirmation confirmation,
Assertion assertion,
ValidationContext context)
Validates the
NotOnOrAfter condition of the SubjectConfirmationData , if any is present. |
protected ValidationResult |
validateRecipient(SubjectConfirmation confirmation,
Assertion assertion,
ValidationContext context)
Validates the
Recipient condition of the SubjectConfirmationData , if any is present. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServicedMethod
public AbstractSubjectConfirmationValidator()
@Nonnull public ValidationResult validate(@Nonnull SubjectConfirmation confirmation, @Nonnull Assertion assertion, @Nonnull ValidationContext context) throws AssertionValidationException
validate
in interface SubjectConfirmationValidator
AssertionValidationException
@Nonnull protected ValidationResult validateNotBefore(@Nonnull SubjectConfirmation confirmation, @Nonnull Assertion assertion, @Nonnull ValidationContext context) throws AssertionValidationException
NotBefore
condition of the SubjectConfirmationData
, if any is present.confirmation
- confirmation method, with SubjectConfirmationData
, being validatedassertion
- assertion bearing the confirmation methodcontext
- current validation contextAssertionValidationException
- thrown if there is a problem determining the validity of the NotBefore@Nonnull protected ValidationResult validateNotOnOrAfter(@Nonnull SubjectConfirmation confirmation, @Nonnull Assertion assertion, @Nonnull ValidationContext context) throws AssertionValidationException
NotOnOrAfter
condition of the SubjectConfirmationData
, if any is present.confirmation
- confirmation method, with SubjectConfirmationData
, being validatedassertion
- assertion bearing the confirmation methodcontext
- current validation contextAssertionValidationException
- thrown if there is a problem determining the validity of the NotOnOrAFter@Nonnull protected ValidationResult validateRecipient(@Nonnull SubjectConfirmation confirmation, @Nonnull Assertion assertion, @Nonnull ValidationContext context) throws AssertionValidationException
Recipient
condition of the SubjectConfirmationData
, if any is present.confirmation
- confirmation method being validatedassertion
- assertion bearing the confirmation methodcontext
- current validation contextAssertionValidationException
- thrown if there is a problem determining the validity of the recipient@Nonnull protected ValidationResult validateAddress(@Nonnull SubjectConfirmation confirmation, @Nonnull Assertion assertion, @Nonnull ValidationContext context) throws AssertionValidationException
Address
condition of the SubjectConfirmationData
, if any is present.confirmation
- confirmation method being validatedassertion
- assertion bearing the confirmation methodcontext
- current validation contextAssertionValidationException
- thrown if there is a problem determining the validity of the address@Nonnull protected abstract ValidationResult doValidate(@Nonnull SubjectConfirmation confirmation, @Nonnull Assertion assertion, @Nonnull ValidationContext context) throws AssertionValidationException
confirmation
- confirmation method being validatedassertion
- assertion bearing the confirmation methodcontext
- current validation contextAssertionValidationException
- thrown if further validation finds the confirmation method to be invalidCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.