다음을 통해 공유


Rfc3161TimestampToken.TryDecode 메서드

정의

encodedBytes의 콘텐츠를 DER로 인코딩된 타임스탬프 토큰으로 해석하려고 합니다.

public:
 static bool TryDecode(ReadOnlyMemory<System::Byte> encodedBytes, [Runtime::InteropServices::Out] System::Security::Cryptography::Pkcs::Rfc3161TimestampToken ^ % token, [Runtime::InteropServices::Out] int % bytesConsumed);
public static bool TryDecode (ReadOnlyMemory<byte> encodedBytes, out System.Security.Cryptography.Pkcs.Rfc3161TimestampToken? token, out int bytesConsumed);
public static bool TryDecode (ReadOnlyMemory<byte> encodedBytes, out System.Security.Cryptography.Pkcs.Rfc3161TimestampToken token, out int bytesConsumed);
static member TryDecode : ReadOnlyMemory<byte> * Rfc3161TimestampToken * int -> bool
Public Shared Function TryDecode (encodedBytes As ReadOnlyMemory(Of Byte), ByRef token As Rfc3161TimestampToken, ByRef bytesConsumed As Integer) As Boolean

매개 변수

encodedBytes
ReadOnlyMemory<Byte>

DER로 인코딩된 타임스탬프 토큰을 포함하는 버퍼입니다.

token
Rfc3161TimestampToken

이 메서드가 반환될 때 디코딩에 성공하면 제대로 디코딩된 타임스탬프 토큰이고, 디코딩에 실패한 경우 null입니다. 이 매개 변수는 초기화되지 않은 것으로 처리됩니다.

bytesConsumed
Int32

이 메서드가 반환될 때 encodedBytes에서 읽힌 바이트 수입니다. 이 매개 변수는 초기화되지 않은 것으로 처리됩니다.

반환

encodedBytes가 제대로 타임스탬프 토큰으로 해석되었으면 true이고 그렇지 않으면 false입니다.

적용 대상