แก้ไข

แชร์ผ่าน


InMemorySymmetricSecurityKey Class

Definition

Represents keys that are generated using symmetric algorithms and are only stored in the local computer's random access memory.

public ref class InMemorySymmetricSecurityKey : System::IdentityModel::Tokens::SymmetricSecurityKey
public class InMemorySymmetricSecurityKey : System.IdentityModel.Tokens.SymmetricSecurityKey
type InMemorySymmetricSecurityKey = class
    inherit SymmetricSecurityKey
Public Class InMemorySymmetricSecurityKey
Inherits SymmetricSecurityKey
Inheritance
InMemorySymmetricSecurityKey

Remarks

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

Constructors

InMemorySymmetricSecurityKey(Byte[], Boolean)

Initializes a new instance of the InMemorySymmetricSecurityKey class using the specified symmetric key and a value that indicates whether the binary data must be cloned.

InMemorySymmetricSecurityKey(Byte[])

Initializes a new instance of the InMemorySymmetricSecurityKey class using the specified symmetric key.

Properties

KeySize

Gets the size, in bits, of the key.

Methods

DecryptKey(String, Byte[])

Decrypts the specified encrypted key.

EncryptKey(String, Byte[])

Encrypts the specified key.

Equals(Object)

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

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

Generates a derived key using the specified cryptographic algorithm and parameters for the current key.

GetDecryptionTransform(String, Byte[])

Gets a transform that decrypts cipher text using the specified cryptographic algorithm.

GetEncryptionTransform(String, Byte[])

Gets a transform that encrypts XML using the specified cryptographic algorithm.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetIVSize(String)

Gets the size, in bits, of the initialization vector (IV) that is required for the specified cryptographic algorithm.

GetKeyedHashAlgorithm(String)

Gets an instance of the specified keyed hash algorithm.

GetSymmetricAlgorithm(String)

Gets an instance of the specified symmetric algorithm.

GetSymmetricKey()

Gets the bytes that represent the symmetric key.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsAsymmetricAlgorithm(String)

Gets a value that indicates whether the specified algorithm uses asymmetric keys.

IsSupportedAlgorithm(String)

Gets a value that indicates whether the specified algorithm is supported by this class.

IsSymmetricAlgorithm(String)

Gets a value that indicates whether the specified algorithm uses symmetric keys.

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