Class SignatureIntegrityValidator

java.lang.Object
eu.europa.esig.dss.spi.x509.SignatureIntegrityValidator
Direct Known Subclasses:
CAdESSignatureIntegrityValidator, JAdESSignatureIntegrityValidator, OCSPSignatureIntegrityValidator, XAdESSignatureIntegrityValidator

public abstract class SignatureIntegrityValidator extends Object
Checks signature integrity among a provided list of signing certificate candidates
  • Constructor Details

    • SignatureIntegrityValidator

      protected SignatureIntegrityValidator()
      Default constructor instantiating object with null list of erros
  • Method Details

    • validate

      Verifies validity of a signature across a provided signing certificate candidates list NOTE: in case of a failed validation, use getErrorMessages() method after processing this method for more details
      Parameters:
      candidates - CandidatesForSigningCertificate
      Returns:
      CertificateValidity if a valid signing certificate found, NULL otherwise
    • verify

      protected abstract boolean verify(PublicKey publicKey) throws DSSException
      Verifies if the signature has been created with the given public key
      Parameters:
      publicKey - PublicKey to verify
      Returns:
      TRUE if the validation succeeded, FALSE otherwise
      Throws:
      DSSException - in case if an exception occurred
    • getErrorMessages

      public List<String> getErrorMessages()
      Returns error messages after processing of validate(candidates) method if present
      Returns:
      a list of error messages