Rfc3161TimestampRequest.ProcessResponse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈