SignedCmsBuilderAddTimestamp Method

Attaches a timestamp to signed CMS object.

Definition

Namespace: SysadminsLV.PKI.Cryptography.Pkcs
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public void AddTimestamp(
	TspResponse timestamp,
	int signerInfoIndex
)

Parameters

timestamp  TspResponse
TSP response returned from Time-Stamping Authority.
signerInfoIndex  Int32
Signature index to attach the timestamp.

Remarks

Call Encode method to get timestamped object.

Exceptions

NotSupportedException Time-Stamp Response contains invalid content type.
ArgumentException Data returned from Time-Stamping Authority does not contain valid response.
ArgumentNullExceptionresponse parameter is null.
IndexOutOfRangeExceptionsignerInfoIndex value exceeds the number of attached signatures.

See Also