InMemorySymmetricSecurityKey Class
TOC
Collapse the table of content
Expand the table of content

InMemorySymmetricSecurityKey Class

 

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

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

System::Object
  System.IdentityModel.Tokens::SecurityKey
    System.IdentityModel.Tokens::SymmetricSecurityKey
      System.IdentityModel.Tokens::InMemorySymmetricSecurityKey

public ref class InMemorySymmetricSecurityKey : SymmetricSecurityKey

NameDescription
System_CAPS_pubmethodInMemorySymmetricSecurityKey(array<Byte>^)

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

System_CAPS_pubmethodInMemorySymmetricSecurityKey(array<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.

NameDescription
System_CAPS_pubpropertyKeySize

Gets the size, in bits, of the key.(Overrides SecurityKey::KeySize.)

NameDescription
System_CAPS_pubmethodDecryptKey(String^, array<Byte>^)

Decrypts the specified encrypted key.(Overrides SecurityKey::DecryptKey(String^, array<Byte>^).)

System_CAPS_pubmethodEncryptKey(String^, array<Byte>^)

Encrypts the specified key.(Overrides SecurityKey::EncryptKey(String^, array<Byte>^).)

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGenerateDerivedKey(String^, array<Byte>^, array<Byte>^, Int32, Int32)

Generates a derived key using the specified cryptographic algorithm and parameters for the current key.(Overrides SymmetricSecurityKey::GenerateDerivedKey(String^, array<Byte>^, array<Byte>^, Int32, Int32).)

System_CAPS_pubmethodGetDecryptionTransform(String^, array<Byte>^)

Gets a transform that decrypts cipher text using the specified cryptographic algorithm.(Overrides SymmetricSecurityKey::GetDecryptionTransform(String^, array<Byte>^).)

System_CAPS_pubmethodGetEncryptionTransform(String^, array<Byte>^)

Gets a transform that encrypts XML using the specified cryptographic algorithm.(Overrides SymmetricSecurityKey::GetEncryptionTransform(String^, array<Byte>^).)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetIVSize(String^)

Gets the size, in bits, of the initialization vector (IV) that is required for the specified cryptographic algorithm.(Overrides SymmetricSecurityKey::GetIVSize(String^).)

System_CAPS_pubmethodGetKeyedHashAlgorithm(String^)

Gets an instance of the specified keyed hash algorithm.(Overrides SymmetricSecurityKey::GetKeyedHashAlgorithm(String^).)

System_CAPS_pubmethodGetSymmetricAlgorithm(String^)

Gets an instance of the specified symmetric algorithm.(Overrides SymmetricSecurityKey::GetSymmetricAlgorithm(String^).)

System_CAPS_pubmethodGetSymmetricKey()

Gets the bytes that represent the symmetric key.(Overrides SymmetricSecurityKey::GetSymmetricKey().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIsAsymmetricAlgorithm(String^)

Gets a value that indicates whether the specified algorithm uses asymmetric keys.(Overrides SecurityKey::IsAsymmetricAlgorithm(String^).)

System_CAPS_pubmethodIsSupportedAlgorithm(String^)

Gets a value that indicates whether the specified algorithm is supported by this class. (Overrides SecurityKey::IsSupportedAlgorithm(String^).)

System_CAPS_pubmethodIsSymmetricAlgorithm(String^)

Gets a value that indicates whether the specified algorithm uses symmetric keys.(Overrides SecurityKey::IsSymmetricAlgorithm(String^).)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft