Package org.faceless.pdf2
Class SignatureHandler.Placeholder
- java.lang.Object
-
- org.faceless.pdf2.SignatureHandler.Placeholder
-
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- SignatureHandler
public static class SignatureHandler.Placeholder extends Object
A Placeholder can be used to mark a point in the PDF which needs to be updated after the signature has been applied- Since:
- 2.11.12
-
-
Constructor Summary
Constructors Constructor Description Placeholder(int length)
Create a new Placeholder of the specified length, but with no content set
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
clone()
byte[]
getContent()
Get the content, as set bysetContent(byte[])
int
getLength()
Get the length of this objectlong
getOffset()
Get the offset into the file of this objectvoid
setContent(byte[] content)
Set the content for this Placeholder.void
setDigestable(boolean digestable)
Set whether this Placeholder should return true fromisDigestable()
void
setLength(int length)
String
toString()
-
-
-
Method Detail
-
setContent
public void setContent(byte[] content)
Set the content for this Placeholder. If set to not-null in the call toSignatureHandler.preDigest(long, java.util.Map<java.lang.String, org.faceless.pdf2.SignatureHandler.Placeholder>)
, the content will be included in the digest calculation.
-
getContent
public byte[] getContent()
Get the content, as set bysetContent(byte[])
-
getLength
public int getLength()
Get the length of this object
-
setLength
public void setLength(int length)
-
getOffset
public long getOffset()
Get the offset into the file of this object
-
setDigestable
public void setDigestable(boolean digestable)
Set whether this Placeholder should return true fromisDigestable()
-
-