public class SignatureConfiguration extends SignatureConfiguration
Modifier and Type | Method | Description |
---|---|---|
boolean |
getAddTimestamp() |
Whether to add a trusted time-stamp to the signature (Getter)
|
boolean |
getEmbedValidationInformation() |
Whether to embed validation information into the signature (LTV) (Getter)
|
HashAlgorithm |
getHashAlgorithm() |
The message digest algorithm (Getter)
|
SignatureFormat |
getSignatureFormat() |
The format (encoding) of the cryptographic signature (Getter)
|
void |
setAddTimestamp(boolean value) |
Whether to add a trusted time-stamp to the signature (Setter)
|
void |
setEmbedValidationInformation(boolean value) |
Whether to embed validation information into the signature (LTV) (Setter)
|
void |
setHashAlgorithm(HashAlgorithm value) |
The message digest algorithm (Setter)
|
void |
setSignatureFormat(SignatureFormat value) |
The format (encoding) of the cryptographic signature (Setter)
|
equals, hashCode
getClass, notify, notifyAll, toString, wait, wait, wait
getContactInfo, getFieldName, getLocation, getName, getReason, setContactInfo, setFieldName, setLocation, setReason
public HashAlgorithm getHashAlgorithm()
The algorithm used to hash the document and from which the cryptographic signature is created.
Default: pdftools.crypto.HashAlgorithm.SHA256
public void setHashAlgorithm(HashAlgorithm value)
The algorithm used to hash the document and from which the cryptographic signature is created.
Default: pdftools.crypto.HashAlgorithm.SHA256
java.lang.IllegalArgumentException
- If the value is invalid or not supported.java.lang.IllegalArgumentException
- if value
is null
public SignatureFormat getSignatureFormat()
pdftools.crypto.SignatureFormat.ADBE_PKCS7_DETACHED
public void setSignatureFormat(SignatureFormat value)
pdftools.crypto.SignatureFormat.ADBE_PKCS7_DETACHED
java.lang.IllegalArgumentException
- If the value is invalid or not supported.java.lang.IllegalArgumentException
- if value
is null
public boolean getAddTimestamp()
false
public void setAddTimestamp(boolean value)
false
public boolean getEmbedValidationInformation()
true
: Create an LTV signature by embedding validation information
(see pdftools.crypto.ValidationInformation.EMBED_IN_SIGNATURE
).
This value is only supported, if the getSignatureFormat()
is pdftools.crypto.SignatureFormat.ADBE_PKCS7_DETACHED
.
LTV signatures for other formats can be created by adding validation information to the signed document (see pdftools.sign.Signer.process
and pdftools.sign.OutputOptions.getAddValidationInformation
).false
: Create a basic signature without validation information (see pdftools.crypto.ValidationInformation.NONE
).
Default: true
public void setEmbedValidationInformation(boolean value)
true
: Create an LTV signature by embedding validation information
(see pdftools.crypto.ValidationInformation.EMBED_IN_SIGNATURE
).
This value is only supported, if the getSignatureFormat()
is pdftools.crypto.SignatureFormat.ADBE_PKCS7_DETACHED
.
LTV signatures for other formats can be created by adding validation information to the signed document (see pdftools.sign.Signer.process
and pdftools.sign.OutputOptions.getAddValidationInformation
).false
: Create a basic signature without validation information (see pdftools.crypto.ValidationInformation.NONE
).
Default: true