Rfc3161TimestampRequest.ProcessResponse 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将编码的时间戳响应与此请求相结合以生成一个 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 编码的时间戳响应。
- bytesConsumed
- Int32
此方法返回时,从 responseBytes中读取的字节数。 此参数被视为未初始化。
返回
与此请求对应的响应中的时间戳令牌。
注解
此方法将开头 responseBytes 解释为 IETF RFC 3161 TimeStampResp。
如果无法解码响应,则响应状态不是 granted 或 grantedWithMods,颁发的时间戳令牌未成功解码,或者根据 IETF RFC 3161(主要为 2.4.1 和 2.4.2 部分)的接受条件,时间戳令牌不匹配此请求,则会引发一个 CryptographicException 。