Επεξεργασία

Κοινή χρήση μέσω


Rfc3161TimestampToken.TryDecode Method

Definition

Attemps to interpret the contents of encodedBytes as a DER-encoded time-stamp token.

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

Parameters

encodedBytes
ReadOnlyMemory<Byte>

The buffer containing a DER-encoded time-stamp token.

token
Rfc3161TimestampToken

When this method returns, the successfully decoded time-stamp token if decoding succeeded, or null if decoding failed. This parameter is treated as uninitialized.

bytesConsumed
Int32

When this method returns, the number of bytes that were read from encodedBytes. This parameter is treated as uninitialized.

Returns

true if encodedBytes was successfully interpreted as a time-stamp token; otherwise, false.

Applies to