java.lang.Object | |
↳ | com.pdftron.pdf.TimestampingResult |
A class representing the result of testing a timestamping configuration.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TimestampingResult(long impl_ptr) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | __GetHandle() | ||||||||||
void |
close()
Frees the native memory of the object.
| ||||||||||
void |
destroy()
Frees the native memory of the object.
| ||||||||||
byte[] |
getData()
If GetStatus gives true, returns the data from the completed timestamping operation, otherwise throws.
| ||||||||||
EmbeddedTimestampVerificationResult |
getResponseVerificationResult()
If a timestamp response was successfully retrieved from a timestamp authority, returns
the result of verifying it.
| ||||||||||
boolean |
getStatus()
Retrieves the overall status of the timestamping configuration testing operation.
| ||||||||||
String |
getString()
Retrieves a result message regarding the timestamping configuration testing operation.
| ||||||||||
boolean |
hasResponseVerificationResult()
Returns whether a timestamp response verification result is available.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
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 |
---|
If GetStatus gives true, returns the data from the completed timestamping operation, otherwise throws. If this result was returned from TimestampOnNextSave, then this data is the timestamp token. However, if this result was returned from GenerateContentsWithEmbeddedTimestamp, then this data is the main document CMS signature of the DigitalSignatureField but with a newly-added embedded timestamp (unsigned signature-time-stamp attribute as specified in PAdES and PDF 2.0).
PDFNetException |
---|
If a timestamp response was successfully retrieved from a timestamp authority, returns the result of verifying it. If a timestamp response was not received, throws. One should call HasResponseVerificationResult first to see if a detailed result is available before calling this function.
PDFNetException |
---|
Retrieves the overall status of the timestamping configuration testing operation.
PDFNetException |
---|
Retrieves a result message regarding the timestamping configuration testing operation. Output may change in future versions.
PDFNetException |
---|
Returns whether a timestamp response verification result is available. This means that false will be returned when a timestamp response was not received or was empty (e.g. network failures, improper server configuration, bad URL, etc.). This function should be called to check for the availability of a verification result before actually attempting to retrieve one using GetResponseVerificationResult (which throws if a result is not available).
PDFNetException |
---|