Class SignatureConfiguration
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.sign.SignatureConfiguration
com.pdftools.crypto.providers.globalsigndss.SignatureConfiguration
The signature configuration
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to add a trusted time-stamp to the signature (Getter)The message digest algorithm (Getter)The format (encoding) of the cryptographic signature (Getter)The padding type of the cryptographic signature (Getter)Whether to add validation information (LTV) (Getter)voidsetAddTimestamp(boolean value) Whether to add a trusted time-stamp to the signature (Setter)voidThe format (encoding) of the cryptographic signature (Setter)voidWhether to add validation information (LTV) (Setter)Methods inherited from class com.pdftools.sign.SignatureConfiguration
getAppearance, getContactInfo, getFieldName, getLocation, getName, getReason, setAppearance, setContactInfo, setFieldName, setLocation, setReasonMethods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Method Details
-
getHashAlgorithm
The message digest algorithm (Getter)
The algorithm used to hash the document and from which the cryptographic signature is created.
-
getSignaturePaddingType
The padding type of the cryptographic signature (Getter)
Value:pdftools.crypto.SignaturePaddingType.RSA_RSA -
getSignatureFormat
The format (encoding) of the cryptographic signature (Getter)
Default:pdftools.crypto.SignatureFormat.ETSI_CADES_DETACHED -
setSignatureFormat
The format (encoding) of the cryptographic signature (Setter)
Default:pdftools.crypto.SignatureFormat.ETSI_CADES_DETACHED- Throws:
IllegalArgumentException- ifvalueisnull
-
getAddTimestamp
public boolean getAddTimestamp()Whether to add a trusted time-stamp to the signature (Getter)
Default:false -
setAddTimestamp
public void setAddTimestamp(boolean value) Whether to add a trusted time-stamp to the signature (Setter)
Default:false -
getValidationInformation
Whether to add validation information (LTV) (Getter)
Note: This has no effect for signing certificates that do not offer revocation information.
Default:
pdftools.crypto.ValidationInformation.EMBED_IN_DOCUMENT -
setValidationInformation
Whether to add validation information (LTV) (Setter)
Note: This has no effect for signing certificates that do not offer revocation information.
Default:
pdftools.crypto.ValidationInformation.EMBED_IN_DOCUMENT- Throws:
IllegalArgumentException- ifvalueisnull
-