com.groupdocs.signature.domain

Class DigitalSignature

    • Constructor Detail

      • DigitalSignature

        public DigitalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Store Store)
                         throws Exception

        Create Digital Signature based on specified X509 Store and index of certificate

        Parameters:
        Store - X509 Store
        Throws:
        Exception
      • DigitalSignature

        public DigitalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Store Store,
                        int index)
                         throws Exception

        Create Digital Signature based on specified X509 Store and index of certificate

        Parameters:
        Store - X509 Store
        index - Index of certificate
        Throws:
        Exception
      • DigitalSignature

        public DigitalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
                         throws Exception

        Create Digital Signature with specified certificate

        Parameters:
        certificate - X509 Certificate
        Throws:
        Exception
    • Method Detail

      • getCertificate

        public KeyStore getCertificate()

        Certificate of X509Certificate2

      • setCertificate

        public void setCertificate(KeyStore value)

        Certificate of X509Certificate2

      • getComments

        public String getComments()

        Signing purpose comment.

      • setComments

        public void setComments(String value)

        Signing purpose comment.

      • isValid

        public boolean isValid()

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

      • setValid

        public void setValid(boolean value)

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

      • getSignatureType

        public int getSignatureType()

        Type of the digital signature.

      • setSignatureType

        public void setSignatureType(int value)

        Type of the digital signature.

      • getSignTime

        public Date getSignTime()

        Time the document was signed.

      • getSignTimeInternal

        public com.aspose.ms.System.DateTime getSignTimeInternal()
      • setSignTime

        public void setSignTime(Date value)

        Time the document was signed.

      • loadDigitalSignatures

        public static List<DigitalSignature> loadDigitalSignatures()
                                                            throws Exception

        Load Digital Signatures from system X509 Certificates Store

        Returns:
        Throws:
        Exception