SecurityKey.DecryptKey Method (String, Byte[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When overridden in a derived class, decrypts the specified encrypted key.

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

public abstract byte[] DecryptKey(
	string algorithm,
	byte[] keyData
)

Parameters

algorithm
Type: System.String

The cryptographic algorithm that was used to encrypt the key.

keyData
Type: System.Byte[]

An array of Byte that contains the encrypted key.

Return Value

Type: System.Byte[]

An array of Byte that contains the decrypted key.

Use the static fields of the SecurityAlgorithms class to specify the algorithm.

.NET Framework
Available since 3.0
Return to top
Show: