Modifier

Rfc3161TimestampRequest.ProcessResponse Method

Definition

Combines an encoded timestamp response with this request to produce a Rfc3161TimestampToken.

public:
 System::Security::Cryptography::Pkcs::Rfc3161TimestampToken ^ ProcessResponse(ReadOnlyMemory<System::Byte> responseBytes, [Runtime::InteropServices::Out] int % bytesConsumed);
public System.Security.Cryptography.Pkcs.Rfc3161TimestampToken ProcessResponse (ReadOnlyMemory<byte> responseBytes, out int bytesConsumed);
member this.ProcessResponse : ReadOnlyMemory<byte> * int -> System.Security.Cryptography.Pkcs.Rfc3161TimestampToken
Public Function ProcessResponse (responseBytes As ReadOnlyMemory(Of Byte), ByRef bytesConsumed As Integer) As Rfc3161TimestampToken

Parameters

responseBytes
ReadOnlyMemory<Byte>

The DER encoded timestamp response.

bytesConsumed
Int32

When this method returns, the number of bytes that were read from responseBytes. This parameter is treated as uninitialized.

Returns

The timestamp token from the response that corresponds to this request.

Remarks

This method interprets the beginning of responseBytes as an IETF RFC 3161 TimeStampResp. If the response cannot be decoded, the response status is not granted or grantedWithMods, the issued timestamp token does not successfully decode, or the timestamp token does not match this request per the acceptance criteria of IETF RFC 3161 (chiefly, sections 2.4.1 and 2.4.2), then a CryptographicException is thrown.

Applies to