RsaSignatureCookieTransform.Decode(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.