Class TimestampConfiguration
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.sign.TimestampConfiguration
com.pdftools.crypto.providers.pkcs11.TimestampConfiguration
The time-stamp configuration
-
Method Summary
Modifier and TypeMethodDescriptionThe message digest algorithm (Getter)voidsetHashAlgorithm(HashAlgorithm value) The message digest algorithm (Setter)Methods inherited from class com.pdftools.sign.TimestampConfiguration
getAppearance, getFieldName, setAppearance, setFieldNameMethods 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 time-stamp signature is created.
Note: This algorithm must be supported by the time-stamp server; many support only SHA-256.
Default:
pdftools.crypto.HashAlgorithm.SHA256 -
setHashAlgorithm
The message digest algorithm (Setter)
The algorithm used to hash the document and from which the time-stamp signature is created.
Note: This algorithm must be supported by the time-stamp server; many support only SHA-256.
Default:
pdftools.crypto.HashAlgorithm.SHA256- Throws:
IllegalArgumentException- If the value is invalid or not supported.IllegalArgumentException- ifvalueisnull
-