com.groupdocs.signature.options.sign

Class DigitalSignOptions

    • Constructor Detail

      • DigitalSignOptions

        public DigitalSignOptions()

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

      • DigitalSignOptions

        public DigitalSignOptions(InputStream certificateStream)

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

        Parameters:
        certificateStream - Digital Certificate stream
      • DigitalSignOptions

        public DigitalSignOptions(InputStream certificateStream,
                          InputStream appearenceImageStream)

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

        Parameters:
        certificateStream - Digital Certificate stream
        appearenceImageStream - Signature Appearance image stream
      • DigitalSignOptions

        public DigitalSignOptions(InputStream certificateStream,
                          String imageFilePath)

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

        Parameters:
        certificateStream - Digital Certificate stream
        imageFilePath - Signature Appearance image file path
      • DigitalSignOptions

        public DigitalSignOptions(String certificateFilePath)

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

        Parameters:
        certificateFilePath - Digital certificate file path
      • DigitalSignOptions

        public DigitalSignOptions(String certificateFilePath,
                          InputStream appearenceImageStream)

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

        Parameters:
        certificateFilePath - Digital certificate file path
        appearenceImageStream - Signature Appearance image stream
      • DigitalSignOptions

        public DigitalSignOptions(String certificateFilePath,
                          String imageFilePath)

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

        Parameters:
        certificateFilePath - Digital certificate file path
        imageFilePath - Signature Appearance image file path
    • Method Detail

      • getCertificateFilePath

        public final String getCertificateFilePath()

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

      • getCertificateStream

        public final InputStream getCertificateStream()

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

      • getContact

        public final String getContact()

        Gets or sets the signature contact.

      • getLocation

        public final String getLocation()

        Gets or sets the signature location.

      • getPassword

        public final String getPassword()

        Gets or sets the password of digital certificate.

      • getReason

        public final String getReason()

        Gets or sets the reason of signature.

      • getSignature

        public final DigitalSignature getSignature()

        Gets or sets properties of document digital signature.

      • getSignatureLineId

        public final UUID getSignatureLineId()
      • getVisible

        public final boolean getVisible()

        Gets or sets the visibility of signature.

      • 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 under .NET Framework only (not under .NET Standard)

      • setCertificateFilePath

        public void setCertificateFilePath(String value)

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

      • setCertificateStream

        public final void setCertificateStream(InputStream value)

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

      • setContact

        public final void setContact(String value)

        Gets or sets the signature contact.

      • setLocation

        public final void setLocation(String value)

        Gets or sets the signature location.

      • setPassword

        public final void setPassword(String value)

        Gets or sets the password of digital certificate.

      • setReason

        public final void setReason(String value)

        Gets or sets the reason of signature.

      • setSignature

        public final void setSignature(DigitalSignature value)

        Gets or sets properties of document digital signature.

      • setSignatureLineId

        public final void setSignatureLineId(UUID value)
      • setVisible

        public final void setVisible(boolean value)

        Gets or sets the visibility of signature.

      • 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 under .NET Framework only (not under .NET Standard)