Rfc3161TimestampRequest.ProcessResponse(ReadOnlyMemory<Byte>, Int32) 方法

定义

将编码的时间戳响应与此请求合并,以生成 Rfc3161TimestampTokenCombines 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

参数

responseBytes
ReadOnlyMemory<Byte>

DER 编码的时间戳响应。The DER encoded timestamp response.

bytesConsumed
Int32

此方法返回时,为从 responseBytes 中读取的字节数。When this method returns, the number of bytes that were read from responseBytes. 该参数未经初始化即被处理。This parameter is treated as uninitialized.

返回

Rfc3161TimestampToken

与此请求对应的响应中的时间戳标记。The timestamp token from the response that corresponds to this request.

注解

此方法将的开头解释 responseBytes 为 IETF RFC 3161 TimeStampRespThis method interprets the beginning of responseBytes as an IETF RFC 3161 TimeStampResp. 如果无法对响应进行解码,则响应状态为 "不" granted 或 " grantedWithMods 已颁发的时间戳令牌不能成功进行解码",或 "时间戳令牌" 按 IETF RFC 3161 (主要、sections 2.4.1 和 2.4.2 sections) 的验收条件不匹配,则 CryptographicException 会引发。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.

适用于