Class SignatureConfiguration
- Direct Known Subclasses:
SignatureConfiguration,SignatureConfiguration,SignatureConfiguration,SignatureConfiguration
Configuration for signature creation
This configuration controls the signature creation in Signer.sign(com.pdftools.pdf.Document, com.pdftools.sign.SignatureConfiguration, com.pdftools.sys.Stream) and Signer.certify(com.pdftools.pdf.Document, com.pdftools.sign.SignatureConfiguration, com.pdftools.sys.Stream).
Use a pdftools.crypto.providers.Provider to create a signature configuration.
Note that this object can be re-used to sign multiple documents for mass-signing applications.
-
Method Summary
Modifier and TypeMethodDescriptionThe visual appearance of the signature (Getter)The contact information of the signer (Getter)The name of the existing signature field (Getter)The location of signing (Getter)getName()The name of the signing certificate (Getter)The reason for signing (Getter)voidsetAppearance(Appearance value) The visual appearance of the signature (Setter)voidsetContactInfo(String value) The contact information of the signer (Setter)voidsetFieldName(String value) The name of the existing signature field (Setter)voidsetLocation(String value) The location of signing (Setter)voidThe reason for signing (Setter)Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Method Details
-
getFieldName
The name of the existing signature field (Getter)
The
pdftools.pdf.SignatureField.getFieldNameof an existing, unsigned signature field to sign. Note that when an existing signature field is signed, the appearance's position is defined by the existing field. Therefore, make sure thegetAppearance()fits into thepdftools.pdf.SignatureField.getBoundingBox.If
nulla new signature field is created using a unique field name.Default:
null- Throws:
IllegalStateException- If the creating provider has already been closed
-
setFieldName
The name of the existing signature field (Setter)
The
pdftools.pdf.SignatureField.getFieldNameof an existing, unsigned signature field to sign. Note that when an existing signature field is signed, the appearance's position is defined by the existing field. Therefore, make sure thegetAppearance()fits into thepdftools.pdf.SignatureField.getBoundingBox.If
nulla new signature field is created using a unique field name.Default:
null- Throws:
IllegalStateException- If the creating provider has already been closed
-
getAppearance
The visual appearance of the signature (Getter)
The visual appearance or
nullto create a signature without a visual appearance.Default:
null- Throws:
IllegalStateException- If the creating provider has already been closed
-
setAppearance
The visual appearance of the signature (Setter)
The visual appearance or
nullto create a signature without a visual appearance.Default:
null- Throws:
IllegalStateException- If the creating provider has already been closed
-
getName
The name of the signing certificate (Getter)
- Throws:
IllegalStateException- If the creating provider has already been closed
-
getLocation
The location of signing (Getter)
The CPU host name or physical location of the signing.- Throws:
IllegalStateException- If the creating provider has already been closed
-
setLocation
The location of signing (Setter)
The CPU host name or physical location of the signing.- Throws:
IllegalStateException- If the creating provider has already been closed
-
getReason
The reason for signing (Getter)
- Throws:
IllegalStateException- If the creating provider has already been closed
-
setReason
The reason for signing (Setter)
- Throws:
IllegalStateException- If the creating provider has already been closed
-
getContactInfo
The contact information of the signer (Getter)
Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.- Throws:
IllegalStateException- If the creating provider has already been closed
-
setContactInfo
The contact information of the signer (Setter)
Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.- Throws:
IllegalStateException- If the creating provider has already been closed
-