Class SignatureLine

java.lang.Object
org.apache.poi.poifs.crypt.dsig.SignatureLine
Direct Known Subclasses:
XSSFSignatureLine, XWPFSignatureLine

public abstract class SignatureLine extends Object
Base class for SignatureLines (XSSF,XWPF only)
  • Constructor Details

    • SignatureLine

      public SignatureLine()
  • Method Details

    • getSetupId

      public ClassID getSetupId()
    • setSetupId

      public void setSetupId(ClassID setupId)
    • getAllowComments

      public Boolean getAllowComments()
    • setAllowComments

      public void setAllowComments(Boolean allowComments)
    • getSigningInstructions

      public String getSigningInstructions()
    • setSigningInstructions

      public void setSigningInstructions(String signingInstructions)
    • getSuggestedSigner

      public String getSuggestedSigner()
    • setSuggestedSigner

      public void setSuggestedSigner(String suggestedSigner)
    • getSuggestedSigner2

      public String getSuggestedSigner2()
    • setSuggestedSigner2

      public void setSuggestedSigner2(String suggestedSigner2)
    • getSuggestedSignerEmail

      public String getSuggestedSignerEmail()
    • setSuggestedSignerEmail

      public void setSuggestedSignerEmail(String suggestedSignerEmail)
    • getDefaultCaption

      public String getDefaultCaption()
      The default caption
      Returns:
      "[suggestedSigner] \n [suggestedSigner2] \n [suggestedSignerEmail]"
    • getCaption

      public String getCaption()
    • setCaption

      public void setCaption(String caption)
      Set the caption - use maximum of three lines separated by "\n". Defaults to getDefaultCaption()
      Parameters:
      caption - the signature caption
    • getInvalidStamp

      public String getInvalidStamp()
    • setInvalidStamp

      public void setInvalidStamp(String invalidStamp)
      Sets the text stamped over the signature image when the document got tampered with
      Parameters:
      invalidStamp - the invalid stamp text
    • getPlainSignature

      public byte[] getPlainSignature()
      the plain signature without caption
    • setPlainSignature

      public void setPlainSignature(byte[] plainSignature)
      Sets the plain signature supported formats are PNG,GIF,JPEG,(SVG),EMF,WMF. for SVG,EMF,WMF poi-scratchpad needs to be in the class-/modulepath
      Parameters:
      plainSignature - the plain signature - if null, the signature is not rendered and only the caption is visible
    • getContentType

      public String getContentType()
    • setContentType

      public void setContentType(String contentType)
    • getSignatureShape

      public com.microsoft.schemas.vml.CTShape getSignatureShape()
    • setSignatureShape

      public void setSignatureShape(com.microsoft.schemas.vml.CTShape signatureShape)
    • setSignatureShape

      public void setSignatureShape(com.microsoft.schemas.office.office.CTSignatureLine signatureLine)
    • updateSignatureConfig

      public void updateSignatureConfig(SignatureConfig config) throws IOException
      Throws:
      IOException