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 ofSignatureValidationProviderwhich is based on the Apache Santuario library and is used withSignatureinstances which are instances ofSignatureImpl.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description ApacheSantuarioSignatureValidationProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.xml.security.signature.XMLSignaturegetXMLSignature(Signature signature)Access theXMLSignaturefrom the given signature object.voidvalidate(Signature signature, Credential validationCredential)Validate the given XML Signature using the given candidate validation Credential.
-
-
-
Method Detail
-
validate
public void validate(@Nonnull Signature signature, @Nonnull Credential validationCredential) throws SignatureExceptionValidate the given XML Signature using the given candidate validation Credential.- Specified by:
validatein 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 theXMLSignaturefrom the given signature object.- Parameters:
signature- the signature- Returns:
- the related XMLSignature
-
-