Επεξεργασία

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


RsaSignatureCookieTransform.Decode(Byte[]) Method

Definition

Verifies the specified signature and returns the original, unsigned data.

public:
 override cli::array <System::Byte> ^ Decode(cli::array <System::Byte> ^ encoded);
public override byte[] Decode (byte[] encoded);
override this.Decode : byte[] -> byte[]
Public Overrides Function Decode (encoded As Byte()) As Byte()

Parameters

encoded
Byte[]

Data previously returned from the Encode(Byte[]) method.

Returns

Byte[]

The original data (unsigned).

Exceptions

encoded is null.

encoded contains zero bytes.

The signature is not valid.

The data is in the wrong format.

There are no verification keys.

The platform does not support the specified algorithm.

Remarks

All of the keys in the collection specified in the VerificationKeys property are tried.

Applies to