接口 ISignature


public interface ISignature
Corresponds to a digital signature that is attached to a document.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    countersign(KeyStore certificate, String certificatePassword)
    Countersign the signature line, if the signature has been signed.
    void
    Deletes the signature
    boolean
    Gets a Boolean value indicating whether the user can set properties of the Signature object.
    Gets information about a signature.
    boolean
    Gets a value indicating whether this is a signature line.
    boolean
    Gets a Boolean value indicating whether the document was signed successfully.
    boolean
    Determines if the digital signature that corresponds to the Signature object is a valid signature.
    Returns the Parent object for the specified object.
    Gets a ISignatureSetup object that provides access to variousproperties of a signature packet.
    Gets the Shape object associated with a Signature object that is a signature line.
    Returns an Object representing the date and time that the digital certificate corresponding to the Signature object was attached to the document.
    void
    sign(KeyStore certificate, String certificatePassword, SignatureDetails details)
    Creates a signature packet for non-visible signature line.
    void
    sign(KeyStore certificate, String certificatePassword, InputStream signatureImage, SignatureDetails details)
    Creates a signature packet for visible signature line.
    void
    sign(KeyStore certificate, String certificatePassword, String signatureText, SignatureDetails details)
    Creates a signature packet for visible signature line.
  • 方法详细资料

    • getCanSetup

      boolean getCanSetup()
      Gets a Boolean value indicating whether the user can set properties of the Signature object. Read-only.
    • getDetails

      Gets information about a signature. Read-only.
    • getIsSignatureLine

      boolean getIsSignatureLine()
      Gets a value indicating whether this is a signature line. Read-only.
    • getIsSigned

      boolean getIsSigned()
      Gets a Boolean value indicating whether the document was signed successfully. Read-only.
    • getIsValid

      boolean getIsValid()
      Determines if the digital signature that corresponds to the Signature object is a valid signature.
    • getParent

      ISignatureSet getParent()
      Returns the Parent object for the specified object.
    • getSetup

      ISignatureSetup getSetup()
      Gets a ISignatureSetup object that provides access to variousproperties of a signature packet. Read-only.
    • getSignatureLineShape

      IShape getSignatureLineShape()
      Gets the Shape object associated with a Signature object that is a signature line. Read-only.
    • getSignDate

      Calendar getSignDate()
      Returns an Object representing the date and time that the digital certificate corresponding to the Signature object was attached to the document.
    • delete

      void delete()
      Deletes the signature
    • sign

      void sign(KeyStore certificate, String certificatePassword, InputStream signatureImage, SignatureDetails details)
      Creates a signature packet for visible signature line.
      参数:
      certificate - The certificate that will be used to sign the workbook.
      details - The signature detail of the signature.
      signatureImage - The signature image of the signature line.
      抛出:
      IllegalStateException - Attempted to sign a non-visiblesignature line
    • sign

      void sign(KeyStore certificate, String certificatePassword, String signatureText, SignatureDetails details)
      Creates a signature packet for visible signature line.
      参数:
      certificate - The certificate that will be used to sign the workbook.
      details - The signature detail of the signature.
      signatureText - The signature text of the signature line.
      抛出:
      IllegalStateException - Attempted to sign a non-visiblesignature line
    • sign

      void sign(KeyStore certificate, String certificatePassword, SignatureDetails details)
      Creates a signature packet for non-visible signature line.
      参数:
      certificate - The certificate that will be used to sign the workbook.
      details - The signature detail of the signature.
      抛出:
      IllegalStateException - Attempted to sign a visible signatureline
    • countersign

      void countersign(KeyStore certificate, String certificatePassword)
      Countersign the signature line, if the signature has been signed.
      参数:
      certificate - The certificate that will be used to countersign theworkbook.
      抛出:
      IllegalStateException - The signature was not signed.