public final class SignatureValidator extends Object
Signature
using a candidate validation Credential
.Modifier and Type | Field and Description |
---|---|
private static SignatureValidationProvider |
validatorInstance
The cached signature validation provider instance to use.
|
Modifier | Constructor and Description |
---|---|
protected |
SignatureValidator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private static org.slf4j.Logger |
getLogger()
Get an SLF4J Logger.
|
private static SignatureValidationProvider |
getSignatureValidationProvider()
Obtain the
SignatureValidationProvider instance to be used. |
static void |
validate(Signature signature,
Credential validationCredential)
Validate the given XML Signature using the given candidate validation Credential.
|
private static SignatureValidationProvider validatorInstance
public static void validate(@Nonnull Signature signature, @Nonnull Credential validationCredential) throws SignatureException
signature
- the XMLSignature to validatevalidationCredential
- the candidate validation CredentialSignatureException
- if the signature does not validate using the candiate Credential,
or if there is otherwise an error during the validation operation@Nonnull private static SignatureValidationProvider getSignatureValidationProvider() throws SignatureException
SignatureValidationProvider
instance to be used.SignatureException
- if a SignatureValidationProvider could not be loaded@Nonnull private static org.slf4j.Logger getLogger()
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.