RsaSignatureCookieTransform.Decode(Byte[]) 方法
定义
验证指定的签名并返回原始的和未签名的数据。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()
参数
- encoded
- Byte[]
以前从 Encode(Byte[]) 方法返回的数据。Data previously returned from the Encode(Byte[]) method.
返回
- Byte[]
原始数据(无符号)。The original data (unsigned).
例外
encoded 为 null。encoded is null.
encoded 包含零字节。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.
注解
尝试在属性中指定的集合中的所有键 VerificationKeys 。All of the keys in the collection specified in the VerificationKeys property are tried.