T
- the type of the object that is to be validatedpublic abstract class AbstractSignableObjectValidator<T extends SignableXMLObject> extends AbstractObjectValidator<T>
Supports the following ValidationContext
static parameters:
AbstractObjectValidator
.CoreValidatorParameters.SIGNATURE_REQUIRED
: Optional. If not supplied, defaults to 'true'. If an object
is signed, the signature is always evaluated and the result factored into the overall validation result, regardless
of the value of this setting.CoreValidatorParameters.SIGNATURE_VALIDATION_CRITERIA_SET
: Optional. If not supplied, a minimal criteria
set will be constructed which contains an EntityIdCriterion
containing the Issuer entityID, and a
UsageCriterion
of UsageType.SIGNING
. If it is supplied, but either of those criteria are absent from
the criteria set, they will be added with the above values.Modifier and Type | Field and Description |
---|---|
protected SignaturePrevalidator |
signaturePrevalidator
SAML signature profile validator.
|
protected SignatureTrustEngine |
trustEngine
Trust engine for signature evaluation.
|
DEFAULT_ALLOWED_CLOCK_SKEW, DEFAULT_MAX_AGE_RECEIVED_MESSAGE
Constructor and Description |
---|
AbstractSignableObjectValidator(SignatureTrustEngine trustEngine,
SignaturePrevalidator signaturePrevalidator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getID(T signableObject)
Returns the ID of the signable object.
|
protected abstract String |
getIssuer(T signableObject)
Returns the issuer of the signable object.
|
protected abstract String |
getObjectName()
Returns the name of the object being validated, e.g.
|
protected CriteriaSet |
getSignatureValidationCriteriaSet(T token,
ValidationContext context)
Get the criteria set that will be used in evaluating the Assertion signature via the supplied trust engine.
|
protected ValidationResult |
performSignatureValidation(T token,
ValidationContext context)
Handles the actual signature validation.
|
protected ValidationResult |
validateSignature(T token,
ValidationContext context)
Validates the signature of the assertion, if it is signed.
|
getAllowedClockSkew, getMaxAgeReceivedMessage, getReceiveInstant, isStrictValidation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
protected SignatureTrustEngine trustEngine
protected SignaturePrevalidator signaturePrevalidator
public AbstractSignableObjectValidator(SignatureTrustEngine trustEngine, SignaturePrevalidator signaturePrevalidator)
trustEngine
- the trust used to validate the object's signaturesignaturePrevalidator
- the signature pre-validator used to pre-validate the object's signatureprotected ValidationResult validateSignature(T token, ValidationContext context)
token
- assertion whose signature will be validatedcontext
- current validation contextprotected ValidationResult performSignatureValidation(T token, ValidationContext context)
token
- object whose signature will be validatedcontext
- current validation contextprotected CriteriaSet getSignatureValidationCriteriaSet(T token, ValidationContext context)
token
- object whose signature will be validatedcontext
- current validation contextprotected abstract String getIssuer(T signableObject)
signableObject
- the object being verifiedprotected abstract String getID(T signableObject)
signableObject
- the object being verifiedprotected abstract String getObjectName()
Copyright © 2018 Litsec AB. All rights reserved.