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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應