Packages

 

com.groupdocs.signature.domain.signatures.digital

Class DigitalSignature

    • Constructor Detail

      • DigitalSignature

        public DigitalSignature()

        Initialize DigitalSignature with default parameters.

      • DigitalSignature

        public DigitalSignature(KeyStore certificate)

        Create Digital Signature with specified certificate.

        Parameters:
        certificate - X509 certificate.
    • Method Detail

      • getCertificate

        public KeyStore getCertificate()

        Gets or sets the X509 certificate.

      • getComments

        public String getComments()

        Gets or sets the signing purpose comment.

      • getSignatureType

        public int getSignatureType()

        Gets or sets the type of the digital signature.

      • getSignTime

        public Date getSignTime()

        Gets or sets the time the document was signed.

      • isValid

        public boolean isValid()

        Keeps true if this digital signature is valid and the document has not been tampered with.

      • loadDigitalSignatures

        public static List<DigitalSignature> loadDigitalSignatures()
                                                            throws Exception

        Load Digital Signatures from all system X509 Certificates Stores.

        Returns:
        Returns list of DigitalSignature Digital Signatures.
        Throws:
        Exception
      • setCertificate

        public void setCertificate(KeyStore value)

        Gets or sets the X509 certificate.

      • setComments

        public void setComments(String value)

        Gets or sets the signing purpose comment.

      • setSignatureType

        public void setSignatureType(int value)

        Gets or sets the type of the digital signature.

      • setSignTime

        public void setSignTime(Date value)

        Gets or sets the time the document was signed.

      • setValid

        public void setValid(boolean value)

        Keeps true if this digital signature is valid and the document has not been tampered with.