Click or drag to resize
TimeStamperstamp Method
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.

Namespace:  de.softpro.signdocsdk
Assembly:  SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.6773.37566
Syntax
C#
public StampResult stamp(
	byte[] documentMessageDigest,
	int length,
	uint randomNonceSize,
	StampFlag flags,
	out byte[] output,
	out int status,
	out uint failureInfo
)

Parameters

documentMessageDigest
Type: SystemByte
A pointer to the first octet of the message digest to be signed.
length
Type: SystemInt32

[Missing <param name="length"/> documentation for "M:de.softpro.signdocsdk.TimeStamper.stamp(System.Byte[],System.Int32,System.UInt32,de.softpro.signdocsdk.Enums.ETimeStamper.StampFlag,System.Byte[]@,System.Int32@,System.UInt32@)"]

randomNonceSize
Type: SystemUInt32
The size(in octets, 1 through 256) of the random nonce in the time - stamp request.
flags
Type: de.softpro.signdocsdk.Enums.ETimeStamperStampFlag
Flags modifying the behavior of this function, see StampFlag.
output
Type: SystemByte
Output The time - stamp token sent by the server will be stored here as blob if this function returns sr_ok.Otherwise, aOutput will be empty.
status
Type: SystemInt32
Output The PKIStatus value of the response from the server will be stored here. 0 if no response from the server is available.
failureInfo
Type: SystemUInt32
Output The PKIFailureInfo value of the response from the server will be stored here. 0 if no response from the server is available.

Return Value

Type: StampResult
Return code : SIGNDOC_TIMESTAMPER_STAMPRESULT_OK, SIGNDOC_TIMESTAMPER_STAMPRESULT_INVALID_INPUT, SIGNDOC_TIMESTAMPER_STAMPRESULT_TIMEOUT, SIGNDOC_TIMESTAMPER_STAMPRESULT_STOPPED, SIGNDOC_TIMESTAMPER_STAMPRESULT_TCP_ERROR, SIGNDOC_TIMESTAMPER_STAMPRESULT_SSL_ERROR, SIGNDOC_TIMESTAMPER_STAMPRESULT_HTTP_ERROR, SIGNDOC_TIMESTAMPER_STAMPRESULT_SERVER_ERROR, or SIGNDOC_TIMESTAMPER_STAMPRESULT_INVALID_RESPONSE.Use SIGNDOC_TimeStamper_getErrorMessage() to get an error message.
See Also