java.lang.Object | |
↳ | com.pdftron.pdf.TimestampingConfiguration |
A class representing a set of options for timestamping a document.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TimestampingConfiguration(long impl_ptr) | |||||||||||
TimestampingConfiguration(String in_url)
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | __GetHandle() | ||||||||||
void |
close()
Frees the native memory of the object.
| ||||||||||
void |
destroy()
Frees the native memory of the object.
| ||||||||||
void |
setTimestampAuthorityServerPassword(String in_password)
Setter for a password to use during timestamping.
| ||||||||||
void |
setTimestampAuthorityServerURL(String in_url)
Setter to change the timestamp authority (TSA) URL to use during timestamping.
| ||||||||||
void |
setTimestampAuthorityServerUsername(String in_username)
Setter for a username to use during timestamping.
| ||||||||||
void |
setUseNonce(boolean in_use_nonce)
Setter for whether to use a nonce (unique random number) during timestamping.
| ||||||||||
TimestampingResult |
testConfiguration(VerificationOptions in_opts)
Tests a timestamping configuration for usability and reports any failures.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
Constructor.
in_url | -- a string representing a URL of a timestamp authority (TSA) to use during timestamping |
---|
PDFNetException |
---|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
PDFNetException |
---|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
PDFNetException |
---|
Setter for a password to use during timestamping.
in_password | -- a string representing a password. |
---|
PDFNetException |
---|
Setter to change the timestamp authority (TSA) URL to use during timestamping.
in_url | -- a string representing a URL of a timestamp authority. |
---|
PDFNetException |
---|
Setter for a username to use during timestamping.
in_username | -- a string representing a username. |
---|
PDFNetException |
---|
Setter for whether to use a nonce (unique random number) during timestamping. This is on by default, and should be on whenever a timestamp authority supports it, because it helps prevent replay attacks.
in_use_nonce | -- a boolean value representing whether or not to use a nonce |
---|
PDFNetException |
---|
Tests a timestamping configuration for usability and reports any failures. This function does not throw on many common failures, unlike the real signing, thereby allowing early diagnosis of things like connectivity issues with timestamp authorities.
in_opts | -- a set of verification options to try to use |
---|
PDFNetException |
---|