public abstract class SignatureLine
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
SignatureLine.AddPictureData |
Modifier and Type | Field and Description |
---|---|
protected static javax.xml.namespace.QName |
QNAME_SIGNATURE_LINE |
Constructor and Description |
---|
SignatureLine() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(org.apache.xmlbeans.XmlObject signatureContainer,
SignatureLine.AddPictureData addPictureData) |
protected byte[] |
generateImage(boolean showSignature,
boolean showInvalidStamp)
Generate the image for a signature line
|
java.lang.Boolean |
getAllowComments() |
java.lang.String |
getCaption() |
java.lang.String |
getContentType() |
java.lang.String |
getDefaultCaption()
The default caption
|
java.lang.String |
getInvalidStamp() |
byte[] |
getPlainSignature()
the plain signature without caption
|
ClassID |
getSetupId() |
com.microsoft.schemas.vml.CTShape |
getSignatureShape() |
java.lang.String |
getSigningInstructions() |
java.lang.String |
getSuggestedSigner() |
java.lang.String |
getSuggestedSigner2() |
java.lang.String |
getSuggestedSignerEmail() |
protected void |
parse() |
protected byte[] |
plainPng()
Word and Excel a regenerating the valid and invalid signature line based on the
plain signature.
|
void |
setAllowComments(java.lang.Boolean allowComments) |
void |
setCaption(java.lang.String caption)
Set the caption - use maximum of three lines separated by "\n".
|
void |
setContentType(java.lang.String contentType) |
void |
setInvalidStamp(java.lang.String invalidStamp)
Sets the text stamped over the signature image when the document got tampered with
|
void |
setPlainSignature(byte[] plainSignature)
Sets the plain signature
supported formats are PNG,GIF,JPEG,(SVG),EMF,WMF.
|
protected abstract void |
setRelationId(com.microsoft.schemas.vml.CTImageData imageData,
java.lang.String relId) |
void |
setSetupId(ClassID setupId) |
void |
setSignatureShape(com.microsoft.schemas.vml.CTShape signatureShape) |
void |
setSignatureShape(com.microsoft.schemas.office.office.CTSignatureLine signatureLine) |
void |
setSigningInstructions(java.lang.String signingInstructions) |
void |
setSuggestedSigner(java.lang.String suggestedSigner) |
void |
setSuggestedSigner2(java.lang.String suggestedSigner2) |
void |
setSuggestedSignerEmail(java.lang.String suggestedSignerEmail) |
protected void |
update() |
void |
updateSignatureConfig(SignatureConfig config) |
protected static final javax.xml.namespace.QName QNAME_SIGNATURE_LINE
public ClassID getSetupId()
public void setSetupId(ClassID setupId)
public java.lang.Boolean getAllowComments()
public void setAllowComments(java.lang.Boolean allowComments)
public java.lang.String getSigningInstructions()
public void setSigningInstructions(java.lang.String signingInstructions)
public java.lang.String getSuggestedSigner()
public void setSuggestedSigner(java.lang.String suggestedSigner)
public java.lang.String getSuggestedSigner2()
public void setSuggestedSigner2(java.lang.String suggestedSigner2)
public java.lang.String getSuggestedSignerEmail()
public void setSuggestedSignerEmail(java.lang.String suggestedSignerEmail)
public java.lang.String getDefaultCaption()
public java.lang.String getCaption()
public void setCaption(java.lang.String caption)
getDefaultCaption()
caption
- the signature captionpublic java.lang.String getInvalidStamp()
public void setInvalidStamp(java.lang.String invalidStamp)
invalidStamp
- the invalid stamp textpublic byte[] getPlainSignature()
public void setPlainSignature(byte[] plainSignature)
plainSignature
- the plain signature - if null
, the signature is not rendered
and only the caption is visiblepublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
public com.microsoft.schemas.vml.CTShape getSignatureShape()
public void setSignatureShape(com.microsoft.schemas.vml.CTShape signatureShape)
public void setSignatureShape(com.microsoft.schemas.office.office.CTSignatureLine signatureLine)
public void updateSignatureConfig(SignatureConfig config) throws java.io.IOException
java.io.IOException
protected void parse()
protected abstract void setRelationId(com.microsoft.schemas.vml.CTImageData imageData, java.lang.String relId)
protected void add(org.apache.xmlbeans.XmlObject signatureContainer, SignatureLine.AddPictureData addPictureData)
protected void update()
protected byte[] plainPng() throws java.io.IOException
java.io.IOException
protected byte[] generateImage(boolean showSignature, boolean showInvalidStamp) throws java.io.IOException
showSignature
- show signature image - use false
for placeholder images in to-be-signed documentsshowInvalidStamp
- print invalid stamp over the signaturejava.io.IOException
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.