RsaSignatureCookieTransform.Encode(Byte[]) Method
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.
Signs the specified data.
public:
override cli::array <System::Byte> ^ Encode(cli::array <System::Byte> ^ value);
public override byte[] Encode (byte[] value);
override this.Encode : byte[] -> byte[]
Public Overrides Function Encode (value As Byte()) As Byte()
- value
- Byte[]
The data to be signed.
The signed data.
value
is null
.
value
contains zero bytes.
The SigningKey property is null
.
-or-
The key specified by the SigningKey property is not assignable as RSACryptoServiceProvider.
-or-
The key specified by the SigningKey property does not contain a private key.
The operating system does not support the specified algorithm.
The key specified by the SigningKey property must include the private key in order to sign the data.
The signed data may be verified by calling the Decode method.
Product | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: