public class SignatureConfiguration extends SignatureConfiguration
Modifier and Type | Method | Description |
---|---|---|
boolean |
getAddTimestamp() |
Whether to add a trusted time-stamp to the signature (Getter)
|
HashAlgorithm |
getHashAlgorithm() |
The message digest algorithm (Getter)
|
SignatureFormat |
getSignatureFormat() |
The format (encoding) of the cryptographic signature (Getter)
|
SignaturePaddingType |
getSignaturePaddingType() |
The padding type of the cryptographic signature (Getter)
|
ValidationInformation |
getValidationInformation() |
Whether to add validation information (LTV) (Getter)
|
void |
setAddTimestamp(boolean value) |
Whether to add a trusted time-stamp to the signature (Setter)
|
void |
setSignatureFormat(SignatureFormat value) |
The format (encoding) of the cryptographic signature (Setter)
|
void |
setValidationInformation(ValidationInformation value) |
Whether to add validation information (LTV) (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.
public SignaturePaddingType getSignaturePaddingType()
pdftools.crypto.SignaturePaddingType.RSA_RSA
public SignatureFormat getSignatureFormat()
pdftools.crypto.SignatureFormat.ETSI_CADES_DETACHED
public void setSignatureFormat(SignatureFormat value)
pdftools.crypto.SignatureFormat.ETSI_CADES_DETACHED
java.lang.IllegalArgumentException
- if value
is null
public boolean getAddTimestamp()
false
public void setAddTimestamp(boolean value)
false
public ValidationInformation getValidationInformation()
Note: This has no effect for signing certificates that do not offer revocation information.
Default: pdftools.crypto.ValidationInformation.EMBED_IN_DOCUMENT
public void setValidationInformation(ValidationInformation value)
Note: This has no effect for signing certificates that do not offer revocation information.
Default: pdftools.crypto.ValidationInformation.EMBED_IN_DOCUMENT
java.lang.IllegalArgumentException
- if value
is null