asposecells.api

Class DigitalSignature

Signature in file.

Property Getters/Setters Summary
methodgetCertificate()
method
           Certificate object that was used to sign the document.
methodgetComments()
method
           The purpose to signature.
methodgetId()
method
setId(value)
           Specifies a GUID which can be cross-referenced with the GUID of the signature line stored in the document content. Default value is Empty (all zeroes) Guid.
methodgetImage()
method
setImage(value)
           Specifies an image for the digital signature. Default value is null.
methodisValid()
If this digital signature is valid and the document has not been tampered with, this value will be true.
methodgetProviderId()
method
           Specifies the class ID of the signature provider. Default value is Empty (all zeroes) Guid.
methodgetSignTime()
method
           The time when the document was signed.
methodgetText()
method
setText(value)
           Specifies the text of actual signature in the digital signature. Default value is Empty.
methodgetXAdESType()
method
           XAdES type. Default value is None(XAdES is off). The value of the property is XAdESType integer constant.
 

    • Property Getters/Setters Detail

      • getCertificate/setCertificate : KeyStore 

        KeyStore getCertificate() / setCertificate(value)
        
        Certificate object that was used to sign the document.
      • getComments/setComments : String 

        String getComments() / setComments(value)
        
        The purpose to signature.
      • getSignTime/setSignTime : DateTime 

        DateTime getSignTime() / setSignTime(value)
        
        The time when the document was signed.
      • getId/setId : UUID 

        UUID getId() / setId(value)
        
        Specifies a GUID which can be cross-referenced with the GUID of the signature line stored in the document content. Default value is Empty (all zeroes) Guid. When set, it associates SignatureLine with corresponding DigitalSignature.
      • getText/setText : String 

        String getText() / setText(value)
        
        Specifies the text of actual signature in the digital signature. Default value is Empty.
      • getImage/setImage : byte[] 

        byte[] getImage() / setImage(value)
        
        Specifies an image for the digital signature. Default value is null.
      • getProviderId/setProviderId : UUID 

        UUID getProviderId() / setProviderId(value)
        
        Specifies the class ID of the signature provider. Default value is Empty (all zeroes) Guid. The cryptographic service provider (CSP) is an independent software module that actually performs cryptography algorithms for authentication, encoding, and encryption. Microsoft Office reserves the value of {00000000-0000-0000-0000-000000000000} for its default signature provider, and {000CD6A4-0000-0000-C000-000000000046} for its East Asian signature provider. The GUID of the additionally installed provider should be obtained from the documentation shipped with the provider.
      • isValid : boolean 

        boolean isValid()
        
        If this digital signature is valid and the document has not been tampered with, this value will be true.
      • getXAdESType/setXAdESType : int 

        int getXAdESType() / setXAdESType(value)
        
        XAdES type. Default value is None(XAdES is off). The value of the property is XAdESType integer constant.