com.groupdocs.signature.domain.signatures

Class DigitalSignature

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable
    Direct Known Subclasses:
    PdfDigitalSignature


    public class DigitalSignature
    extends BaseSignature

    Contains Digital signature properties.

    • Constructor Detail

      • DigitalSignature

        public DigitalSignature()

        Initialize Digital signature with default parameters.

      • DigitalSignature

        public DigitalSignature(KeyStore certificate)

        Create Digital signature with specified certificate.

        Parameters:
        certificate - X509 certificate.
    • Method Detail

      • deepClone

        public Object deepClone()

        Clone Barcode Signature instance.

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Overrides:
        deepClone in class BaseSignature
        Returns:
        Returns cloned Barcode Signature instance.
      • equals

        public boolean equals(Object signature)

        Overwrites Equals method to compare signature properties

        Overrides:
        equals in class BaseSignature
        Parameters:
        signature - Signature object to compare with.
        Returns:
        Returns true if passed signature object has same type and all its properties are equal to this instance properties.
      • getCertificate

        public final KeyStore getCertificate()

        Gets or sets the X509 certificate.

      • getComments

        public final String getComments()

        Gets or sets the signing purpose comment.

      • getSignatureMetaInfo

        public com.groupdocs.signature.domain.signatures.metainfo.SignatureMetaInfo getSignatureMetaInfo()
        Specified by:
        getSignatureMetaInfo in class BaseSignature
      • getSignTime

        public final Date getSignTime()

        Gets or sets the time the document was signed.

      • getXAdESType

        public final int getXAdESType()

        XAdES type XAdESType. Default value is None (XAdES is off). At this moment XAdES signature type is supported only for Spreadsheet documents.

      • hashCode

        public int hashCode()

        Overrides GetHashCode method

        Overrides:
        hashCode in class BaseSignature
        Returns:
        Signature hash code
      • isValid

        public final boolean isValid()

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

      • setCertificate

        public final void setCertificate(KeyStore value)

        Gets or sets the X509 certificate.

      • setComments

        public final void setComments(String value)

        Gets or sets the signing purpose comment.

      • setSignTime

        public final void setSignTime(Date value)

        Gets or sets the time the document was signed.

      • setValid

        public final void setValid(boolean value)

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

      • setXAdESType

        public final void setXAdESType(int value)

        XAdES type XAdESType. Default value is None (XAdES is off). At this moment XAdES signature type is supported only for Spreadsheet documents.

      • updateFromMetaInfo

        public void updateFromMetaInfo(com.groupdocs.signature.domain.signatures.metainfo.SignatureMetaInfo signatureMetaInfo)
        Overrides:
        updateFromMetaInfo in class BaseSignature