com.groupdocs.signature.options.digitalsignature

Class SignDigitalOptions

    • Constructor Detail

      • SignDigitalOptions

        public SignDigitalOptions()
                           throws Exception

        Initializes a new instance of the SignDigitalOptions class with default values.

        Throws:
        Exception
      • SignDigitalOptions

        public SignDigitalOptions(String certificateGuid)
                           throws Exception

        Initializes a new instance of the SignDigitalOptions class with certificate file.

        Parameters:
        certificateGuid - Digital certificate file GUID
        Throws:
        Exception
      • SignDigitalOptions

        public SignDigitalOptions(InputStream certificateStream)
                           throws Exception

        Initializes a new instance of the SignDigitalOptions class with certificate stream.

        Parameters:
        certificateStream - Digital Certificate stream
        Throws:
        Exception
      • SignDigitalOptions

        public SignDigitalOptions(String certificateGuid,
                          String appearenceImageGuid)
                           throws Exception

        Initializes a new instance of the SignDigitalOptions class with certificate file and image file.

        Parameters:
        certificateGuid - Digital certificate file GUID
        appearenceImageGuid - Signature Appearance image file GUID
        Throws:
        Exception
      • SignDigitalOptions

        public SignDigitalOptions(String certificateGuid,
                          InputStream appearenceImageStream)
                           throws Exception

        Initializes a new instance of the SignDigitalOptions class with certificate file and image stream.

        Parameters:
        certificateGuid - Digital certificate file GUID
        appearenceImageStream - Signature Appearance image stream
        Throws:
        Exception
      • SignDigitalOptions

        public SignDigitalOptions(InputStream certificateStream,
                          String appearenceImageGuid)
                           throws Exception

        Initializes a new instance of the SignDigitalOptions class with certificate stream and image file.

        Parameters:
        certificateStream - Digital Certificate stream
        appearenceImageGuid - Signature Appearance image file GUID
        Throws:
        Exception
      • SignDigitalOptions

        public SignDigitalOptions(InputStream certificateStream,
                          InputStream appearenceImageStream)
                           throws Exception

        Initializes a new instance of the SignDigitalOptions class with certificate stream and image stream.

        Parameters:
        certificateStream - Digital Certificate stream
        appearenceImageStream - Signature Appearance image stream
        Throws:
        Exception
    • Method Detail

      • getPassword

        public String getPassword()

        Gets or sets the password of digital certificate.

      • setPassword

        public void setPassword(String value)

        Gets or sets the password of digital certificate.

      • getSignature

        public DigitalSignature getSignature()

        Gets or sets properties of document digital signature.

      • setSignature

        public void setSignature(DigitalSignature value)

        Gets or sets properties of document digital signature.

      • getCertificateGuid

        public String getCertificateGuid()

        Gets or sets the digital certificate file GUID. This property is used only if CertificateStream is not specified.

      • setCertificateGuid

        public void setCertificateGuid(String value)

        Gets or sets the digital certificate file GUID. This property is used only if CertificateStream is not specified.

      • getCertificateStream

        public InputStream getCertificateStream()

        Gets or sets digital certificate stream. If this property is specified it is always used instead CertificateGuid.

      • setCertificateStream

        public void setCertificateStream(InputStream value)

        Gets or sets digital certificate stream. If this property is specified it is always used instead CertificateGuid.

      • getDigitalCertificate

        @Deprecated
        public FileDescription getDigitalCertificate()
        Deprecated. 

        Gets or sets the description of digital certificate.

      • setDigitalCertificate

        @Deprecated
        public void setDigitalCertificate(FileDescription value)
        Deprecated. 

        Gets or sets the description of digital certificate.

      • getAsposeDigitalSignature

        public com.aspose.cells.DigitalSignature getAsposeDigitalSignature()
                                                                    throws Exception

        Gets ASPOSE cells DigitalSignature.

        Returns:
        Throws:
        Exception
      • release

        public void release()

        Override method to clean up resources after each signing.

        Overrides:
        release in class SignImageOptions