SignedCmsBuilderAddTimestamp Method |
Attaches a timestamp to signed CMS object.
Namespace:
SysadminsLV.PKI.Cryptography.Pkcs
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public void AddTimestamp(
TspResponse timestamp,
int signerInfoIndex
)
Public Sub AddTimestamp (
timestamp As TspResponse,
signerInfoIndex As Integer
)
public:
void AddTimestamp(
TspResponse^ timestamp,
int signerInfoIndex
)
member AddTimestamp :
timestamp : TspResponse *
signerInfoIndex : int -> unit
Parameters
- timestamp
- Type: SysadminsLV.PKI.CryptographyTspResponse
TSP response returned from Time-Stamping Authority. - signerInfoIndex
- Type: SystemInt32
Signature index to attach the timestamp.
Exceptions Exception | Condition |
---|
NotSupportedException |
Time-Stamp Response contains invalid content type.
|
ArgumentException |
Data returned from Time-Stamping Authority does not contain valid response.
|
ArgumentNullException | response parameter is null.
|
IndexOutOfRangeException | signerInfoIndex value exceeds the number of attached signatures.
|
Remarks Call
Encode method to get timestamped object.
See Also