Class TimestampConfiguration
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.sign.TimestampConfiguration
-
- Direct Known Subclasses:
TimestampConfiguration
,TimestampConfiguration
,TimestampConfiguration
,TimestampConfiguration
public abstract class TimestampConfiguration extends NativeObject
Configuration for adding time-stamps
This configuration controls the creation of time-stamps in
Signer.addTimestamp(com.pdftools.pdf.Document, com.pdftools.sign.TimestampConfiguration, com.pdftools.sys.Stream)
.Use a
pdftools.crypto.providers.Provider
to create a time-stamp configuration.Note that this object can be re-used to add time-stamps to multiple documents for mass-signing applications.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Appearance
getAppearance()
The visual appearance of the time-stamp (Getter)java.lang.String
getFieldName()
The name of the existing signature field (Getter)void
setAppearance(Appearance value)
The visual appearance of the time-stamp (Setter)void
setFieldName(java.lang.String value)
The name of the existing signature field (Setter)-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getFieldName
public java.lang.String getFieldName()
The name of the existing signature field (Getter)
The
pdftools.pdf.SignatureField.getFieldName
of an existing, unsigned signature field to time-stamp. Note that when an existing signature field is used, the appearance's position is defined by the existing field. Therefore, make sure thegetAppearance()
fits into thepdftools.pdf.SignatureField.getBoundingBox
.If
null
, a new signature field is created using a unique field name.Default:
null
- Throws:
java.lang.IllegalStateException
- If the creating provider has already been closed
-
setFieldName
public void setFieldName(java.lang.String value)
The name of the existing signature field (Setter)
The
pdftools.pdf.SignatureField.getFieldName
of an existing, unsigned signature field to time-stamp. Note that when an existing signature field is used, the appearance's position is defined by the existing field. Therefore, make sure thegetAppearance()
fits into thepdftools.pdf.SignatureField.getBoundingBox
.If
null
, a new signature field is created using a unique field name.Default:
null
- Throws:
java.lang.IllegalStateException
- If the creating provider has already been closed
-
getAppearance
public Appearance getAppearance()
The visual appearance of the time-stamp (Getter)
The visual appearance or
null
to create a time-stamp without a visual appearance.For time-stamps, not all text variables are available, most notably the
[signature:name]
.Default:
null
- Throws:
java.lang.IllegalStateException
- If the creating provider has already been closed
-
setAppearance
public void setAppearance(Appearance value)
The visual appearance of the time-stamp (Setter)
The visual appearance or
null
to create a time-stamp without a visual appearance.For time-stamps, not all text variables are available, most notably the
[signature:name]
.Default:
null
- Throws:
java.lang.IllegalStateException
- If the creating provider has already been closed
-
-