Rfc3161TimestampRequest.ProcessResponse 메서드

정의

인코딩된 타임스탬프 응답을 이 요청과 결합하여 생성합니다 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 가 throw됩니다.

적용 대상