RsaEncryptionCookieTransform.Decode Method (Byte[])

.NET Framework (current version)
 

Decrypts the specified data by using the provided RSA key(s) to decrypt an AES key, which decrypts the cookie.

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

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

Parameters

encoded
Type: System.Byte[]

The encoded data

Return Value

Type: System.Byte[]

The decoded data

Exception Condition
ArgumentNullException

encoded is null.

ArgumentException

encoded contains zero bytes.

NotSupportedException

The platform does not support the requested algorithm.

InvalidOperationException

There are no decryption keys or none of the keys match.

.NET Framework
Available since 4.5
Return to top
Show: