CngKey Members
.NET Framework 3.5
Defines the core functionality for keys that are used with Cryptography Next Generation (CNG) objects.
The CngKey type exposes the following members.
| Name | Description | |
|---|---|---|
|
Create | Overloaded. Creates a CngKey object that represents a new key. |
|
Delete | Removes the key that is associated with the object. |
|
Dispose | Releases all resources used by the current instance of the CngKey class. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Exists | Overloaded. Checks for a named key in a specific key storage provider(KSP). |
|
Export | Exports the key material into a BLOB, in the specified format. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetProperty | Gets a property, given a name and a set of property options. |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
HasProperty | Checks to see whether the specified property exists on the key. |
|
Import | Overloaded. Creates a new key by importing key material into the key storage provider (KSP). |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Open | Overloaded. Creates an instance of an CngKey object that represents an existing key. |
|
SetProperty | Sets a named property on the key. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
Algorithm | Gets the algorithm that is used by the key. |
|
AlgorithmGroup | Gets the algorithm group that is used by the key. |
|
ExportPolicy | Gets the export policy that is used by the key. |
|
Handle | Gets a safe handle that represents a native key (NCRYPT_KEY_HANDLE). |
|
IsEphemeral | Gets the persistence state of the key. |
|
IsMachineKey | Gets the scope (machine or user) of the key. |
|
KeyName | Gets the name of the key. |
|
KeySize | Gets the key size in bits. |
|
KeyUsage | Gets the cryptographic operations specified by the key. |
|
ParentWindowHandle | Gets or sets the window handle (HWND) that should be used for user interface (UI) prompts caused by accessing the key. |
|
Provider | Gets the key storage provider (KSP) that manages the key. |
|
ProviderHandle | Gets a native handle (an NCRYPT_PROV_HANDLE) to the key storage provider (KSP). |
|
UIPolicy | Gets parameters that control the user interface (UI) for accessing the key. |
|
UniqueName | Gets the unique name for the key. |