Class SignatureProvider.SignatureState

    • Constructor Detail

      • SignatureState

        public SignatureState​(FormSignature sig,
                              Boolean validity,
                              String reason,
                              boolean alteredsince,
                              Exception exception)
        Create a new SignatureState
        Parameters:
        sig - the signature
        validity - Boolean.TRUE, Boolean.FALSE or null to indicate the signature is valid, invalid or hasn't be validated
        reason - the reason for signing
        alteredsince - whether the PDF has been altered since the signature was applied
        exception - the exception encountered during validation, or null if it succeeded
    • Method Detail

      • getValidity

        public Boolean getValidity()
        Return the validity of the Signature. Boolean.TRUE for valid, Boolean.FALSE for invalid or null for unknown validity.
      • getReason

        public String getReason()
        Return the descriptive text describing this state
      • isAlteredSince

        public boolean isAlteredSince()
        Return true of the PDF has been altered since the signature was applied. Only useful if getValidity() returns True.
      • getException

        public Exception getException()
        Return the Exception that occurred when trying to verify the signature or certificate, or null if none was thrown.
      • getSignature

        public FormSignature getSignature()
        Return the signature itself