Class SignatureValidator


  • public final class SignatureValidator
    extends Object
    A service class that cryptographically validates an XML Signature Signature using a candidate validation Credential.
    • Field Detail

      • validatorInstance

        private static SignatureValidationProvider validatorInstance
        The cached signature validation provider instance to use.
    • Constructor Detail

      • SignatureValidator

        protected SignatureValidator()
        Constructor.
    • Method Detail

      • validate

        public static void validate​(@Nonnull
                                    Signature signature,
                                    @Nonnull
                                    org.opensaml.security.credential.Credential validationCredential)
                             throws SignatureException
        Validate the given XML Signature using the given candidate validation Credential.
        Parameters:
        signature - the XMLSignature to validate
        validationCredential - 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
      • getLogger

        @Nonnull
        private static org.slf4j.Logger getLogger()
        Get an SLF4J Logger.
        Returns:
        a Logger instance