![]() |
SignDoc SDK (.NET without exceptions)
5.0.0
|
Interface for creating an RFC 3161 timestamp. More...
Public Member Functions | |
string | getHashAlgorithmOID () |
Get the object ID of the message digest algorithm. More... | |
string | getFallbackHashAlgorithmOID () |
Get the object ID of the fallback message digest algorithm. More... | |
TimeStamperStampResult | stamp (byte[] aHash, uint aRandomNonceSize, TimeStamperStampFlags aFlags, out byte[] aOutput, out int aStatus, out uint aFailureInfo) |
Create a time-stamp request, send the request to the configured time stamping authority, and evaluate the response. More... | |
void | stop () |
Interrupt a stamp() call from another thread. More... | |
string | getErrorMessage () |
Get an error message for the last stamp() call. More... | |
Interface for creating an RFC 3161 timestamp.
string getErrorMessage | ( | ) |
string getFallbackHashAlgorithmOID | ( | ) |
Get the object ID of the fallback message digest algorithm.
string getHashAlgorithmOID | ( | ) |
Get the object ID of the message digest algorithm.
TimeStamperStampResult stamp | ( | byte[] | aHash, |
uint | aRandomNonceSize, | ||
TimeStamperStampFlags | aFlags, | ||
out byte[] | aOutput, | ||
out int | aStatus, | ||
out uint | aFailureInfo | ||
) |
Create a time-stamp request, send the request to the configured time stamping authority, and evaluate the response.
The signature in the returned time-stamp token is not verified by this function.
[in] | aHash | The document message digest to be hashed (unless TimeStamperStampFlags.DontHash is set in aFlags) and signed. |
[in] | aRandomNonceSize | The size (in octets, 1 through 256) of the random nonce in the time-stamp request. |
[in] | aFlags | Flags modifying the behavior of this function, see enum TimeStamperStampFlags. |
[out] | aOutput | The time-stamp token sent by the server will be stored here as blob if this function returns TimeStamperStampResult.OK. Otherwise, aOutput will be empty. |
[out] | aStatus | The PKIStatus value of the response from the server will be stored here. 0 if no response from the server is available. |
[out] | aFailureInfo | The PKIFailureInfo value of the response from the server will be stored here. 0 if no response from the server is available. |
void stop | ( | ) |
Interrupt a stamp() call from another thread.
If this function is called while stamp() is waiting for the response from the server, stamp() will return TimeStamperStampResult.Stopped.