Class SignatureConfiguration
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.sign.SignatureConfiguration
com.pdftools.crypto.providers.swisscomsigsrv.SignatureConfiguration
The signature configuration
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to add a trusted time-stamp to the signature (Getter)booleanWhether to embed validation information into the signature (LTV) (Getter)The message digest algorithm (Getter)The format (encoding) of the cryptographic signature (Getter)voidsetAddTimestamp(boolean value) Whether to add a trusted time-stamp to the signature (Setter)voidsetEmbedValidationInformation(boolean value) Whether to embed validation information into the signature (LTV) (Setter)voidsetHashAlgorithm(HashAlgorithm value) The message digest algorithm (Setter)voidThe format (encoding) of the cryptographic signature (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.
Default:
pdftools.crypto.HashAlgorithm.SHA256 -
setHashAlgorithm
The message digest algorithm (Setter)
The algorithm used to hash the document and from which the cryptographic signature is created.
Default:
pdftools.crypto.HashAlgorithm.SHA256- Throws:
IllegalArgumentException- If the value is invalid or not supported.IllegalArgumentException- ifvalueisnull
-
getSignatureFormat
The format (encoding) of the cryptographic signature (Getter)
Default:pdftools.crypto.SignatureFormat.ADBE_PKCS7_DETACHED -
setSignatureFormat
The format (encoding) of the cryptographic signature (Setter)
Default:pdftools.crypto.SignatureFormat.ADBE_PKCS7_DETACHED- Throws:
IllegalArgumentException- If the value is invalid or not supported.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 -
getEmbedValidationInformation
public boolean getEmbedValidationInformation()Whether to embed validation information into the signature (LTV) (Getter)
-
true: Create an LTV signature by embedding validation information (seepdftools.crypto.ValidationInformation.EMBED_IN_SIGNATURE). This value is only supported, if thegetSignatureFormat()ispdftools.crypto.SignatureFormat.ADBE_PKCS7_DETACHED. LTV signatures for other formats can be created by adding validation information to the signed document (seepdftools.sign.Signer.processandpdftools.sign.OutputOptions.getAddValidationInformation). -
false: Create a basic signature without validation information (seepdftools.crypto.ValidationInformation.NONE).
Default:
true -
-
setEmbedValidationInformation
public void setEmbedValidationInformation(boolean value) Whether to embed validation information into the signature (LTV) (Setter)
-
true: Create an LTV signature by embedding validation information (seepdftools.crypto.ValidationInformation.EMBED_IN_SIGNATURE). This value is only supported, if thegetSignatureFormat()ispdftools.crypto.SignatureFormat.ADBE_PKCS7_DETACHED. LTV signatures for other formats can be created by adding validation information to the signed document (seepdftools.sign.Signer.processandpdftools.sign.OutputOptions.getAddValidationInformation). -
false: Create a basic signature without validation information (seepdftools.crypto.ValidationInformation.NONE).
Default:
true -
-