Compartir a través de


Rfc3161TimestampToken.TryDecode Método

Definición

Intenta interpretar el contenido de encodedBytes como un token de marca de tiempo con codificación 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

Parámetros

encodedBytes
ReadOnlyMemory<Byte>

Búfer que contiene un token de marca de tiempo con codificación DER.

token
Rfc3161TimestampToken

Cuando se devuelve este método, el token de marca de tiempo descodificado correctamente si la descodificación se realizó correctamente, o bien null si se produce un error en la descodificación. Este parámetro se trata como sin inicializar.

bytesConsumed
Int32

Cuando se devuelve este método, el número de bytes que se lee de encodedBytes. Este parámetro se trata como sin inicializar.

Devoluciones

Es true si encodedBytes se interpreta correctamente como un token de marca de tiempo; de lo contrario, es false.

Se aplica a