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.signdocsdkAssembly: SPSignDoc_4.1_DotNetLibd (in SPSignDoc_4.1_DotNetLibd.dll) Version: 1.0.5882.21462
Syntaxpublic StampResult stamp(
byte[] documentMessageDigest,
int length,
uint randomNonceSize,
StampFlag flags,
out byte[] output,
out int status,
out uint failureInfo
)
Public Function stamp (
documentMessageDigest As Byte(),
length As Integer,
randomNonceSize As UInteger,
flags As StampFlag,
<OutAttribute> ByRef output As Byte(),
<OutAttribute> ByRef status As Integer,
<OutAttribute> ByRef failureInfo As UInteger
) As StampResult
public:
StampResult stamp(
array<unsigned char>^ documentMessageDigest,
int length,
unsigned int randomNonceSize,
StampFlag flags,
[OutAttribute] array<unsigned char>^% output,
[OutAttribute] int% status,
[OutAttribute] unsigned int% failureInfo
)
member stamp :
documentMessageDigest : byte[] *
length : int *
randomNonceSize : uint32 *
flags : StampFlag *
output : byte[] byref *
status : int byref *
failureInfo : uint32 byref -> StampResult
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