Class ApacheSantuarioSignatureValidationProviderImpl
java.lang.Object
org.opensaml.xmlsec.signature.support.impl.provider.ApacheSantuarioSignatureValidationProviderImpl
- All Implemented Interfaces:
SignatureValidationProvider
public class ApacheSantuarioSignatureValidationProviderImpl
extends Object
implements SignatureValidationProvider
Implementation of
SignatureValidationProvider
which is based on the Apache Santuario library
and is used with Signature
instances which are instances of SignatureImpl
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.xml.security.signature.XMLSignature
getXMLSignature
(Signature signature) Access theXMLSignature
from the given signature object.void
validate
(Signature signature, Credential validationCredential) Validate the given XML Signature using the given candidate validation Credential.
-
Field Details
-
log
private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
ApacheSantuarioSignatureValidationProviderImpl
public ApacheSantuarioSignatureValidationProviderImpl()
-
-
Method Details
-
validate
public void validate(@Nonnull Signature signature, @Nonnull Credential validationCredential) throws SignatureException Validate the given XML Signature using the given candidate validation Credential.- Specified by:
validate
in interfaceSignatureValidationProvider
- Parameters:
signature
- the XMLSignature to validatevalidationCredential
- the candidate validation Credential- Throws:
SignatureException
- if the signature does not validate using the candiate Credential, or if there is otherwise an error during the validation operation
-
getXMLSignature
@Nullable protected org.apache.xml.security.signature.XMLSignature getXMLSignature(@Nonnull Signature signature) Access theXMLSignature
from the given signature object.- Parameters:
signature
- the signature- Returns:
- the related XMLSignature
-