RsaSignatureCookieTransform.Decode Method (Byte[])

.NET Framework (current version)
 

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

Namespace:   System.IdentityModel
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override byte[] Decode(
	byte[] encoded
)

Parameters

encoded
Type: System.Byte[]

Data previously returned from the Encode method.

Return Value

Type: System.Byte[]

The original data (unsigned).

Exception Condition
ArgumentNullException

encoded is null.

ArgumentException

encoded contains zero bytes.

CryptographicException

The signature is not valid.

FormatException

The data is in the wrong format.

InvalidOperationException

There are no verification keys.

NotSupportedException

The platform does not support the specified algorithm.

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

.NET Framework
Available since 4.5
Return to top
Show: