SymmetricSecurityKey Class

Definition

Represents the abstract base class for all keys that are generated using symmetric algorithms.

C#
public abstract class SymmetricSecurityKey : System.IdentityModel.Tokens.SecurityKey
Inheritance
SymmetricSecurityKey
Derived

Remarks

Typically, this class is used by the infrastructure to transform XML using a symmetric key.

Constructors

SymmetricSecurityKey()

Initializes a new instance of the SymmetricSecurityKey class.

Properties

KeySize

When overridden in a derived class, gets the size, in bits, of the key.

(Inherited from SecurityKey)

Methods

DecryptKey(String, Byte[])

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

(Inherited from SecurityKey)
EncryptKey(String, Byte[])

When overridden in a derived class, encrypts the specified key.

(Inherited from SecurityKey)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GenerateDerivedKey(String, Byte[], Byte[], Int32, Int32)

When overridden in a derived class, generates a derived key using the specified cryptographic algorithm and parameters for the current key.

GetDecryptionTransform(String, Byte[])

When overridden in a derived class, gets a transform that decrypts cipher text using the specified cryptographic algorithm.

GetEncryptionTransform(String, Byte[])

When overridden in a derived class, gets a transform that encrypts XML using the specified cryptographic algorithm.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetIVSize(String)

When overridden in a derived class, gets the size, in bits, of the initialization vector (IV) that is required for the specified cryptographic algorithm.

GetKeyedHashAlgorithm(String)

When overridden in a derived class, gets an instance of the specified keyed hash algorithm.

GetSymmetricAlgorithm(String)

When overridden in a derived class, gets an instance of the specified symmetric algorithm.

GetSymmetricKey()

When overridden in a derived class, gets the bytes that represent the symmetric key.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsAsymmetricAlgorithm(String)

When overridden in a derived class, gets a value that indicates whether the specified algorithm uses asymmetric keys.

(Inherited from SecurityKey)
IsSupportedAlgorithm(String)

When overridden in a derived class, gets a value that indicates whether the specified algorithm is supported by this class.

(Inherited from SecurityKey)
IsSymmetricAlgorithm(String)

When overridden in a derived class, gets a value that indicates whether the specified algorithm uses symmetric keys.

(Inherited from SecurityKey)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)