CngKey.Import Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří nový klíč importem materiálu klíče do zprostředkovatele úložiště klíčů (KSP).
Přetížení
| Name | Description |
|---|---|
| Import(Byte[], CngKeyBlobFormat, CngProvider) |
Vytvoří nový klíč importem zadaného materiálu klíče do zadaného zprostředkovatele úložiště klíčů (KSP) pomocí zadaného formátu. |
| Import(Byte[], CngKeyBlobFormat) |
Vytvoří nový klíč importem zadaného materiálu klíče do výchozího zprostředkovatele úložiště klíčů (KSP) a použitím zadaného formátu. |
Import(Byte[], CngKeyBlobFormat, CngProvider)
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
Vytvoří nový klíč importem zadaného materiálu klíče do zadaného zprostředkovatele úložiště klíčů (KSP) pomocí zadaného formátu.
public:
static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format, System::Security::Cryptography::CngProvider ^ provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
[<System.Security.SecurityCritical>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat, provider As CngProvider) As CngKey
Parametry
- keyBlob
- Byte[]
Pole obsahující informace o klíči.
- format
- CngKeyBlobFormat
Objekt, který určuje formát keyBlob pole.
- provider
- CngProvider
The KSP.
Návraty
Nový klíč.
- Atributy
Výjimky
keyBlob, formatnebo provider je null.
Kryptografie next Generation (CNG) není v tomto systému podporována.
Všechny ostatní chyby.
Poznámky
Important
V operačních systémech Windows před Windows 7 a Windows Server 2008 R2 nejsou podporovány některé formáty binárního velkého objektu (BLOB) klíče CNG.
Platí pro
Import(Byte[], CngKeyBlobFormat)
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
Vytvoří nový klíč importem zadaného materiálu klíče do výchozího zprostředkovatele úložiště klíčů (KSP) a použitím zadaného formátu.
public:
static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat) As CngKey
Parametry
- keyBlob
- Byte[]
Pole obsahující informace o klíči.
- format
- CngKeyBlobFormat
Objekt, který určuje formát keyBlob pole.
Návraty
Nový klíč.
- Atributy
Výjimky
keyBlob nebo format je null.
Kryptografie next Generation (CNG) není v tomto systému podporována.
Všechny ostatní chyby.
Poznámky
Výchozí KSP je MicrosoftSoftwareKeyStorageProvider.
Important
V operačních systémech Windows před Windows 7 a Windows Server 2008 R2 nejsou podporovány některé formáty binárního velkého objektu (BLOB) klíče CNG.