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 節),則會拋出 a CryptographicException 。