CngKey.Import Metoda

Definice

Vytvoří nový klíč importem materiálu klíče do zprostředkovatele úložiště klíčů (KSP).

Přetížení

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 pomocí zadaného formátu.

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.

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::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.Runtime.Versioning.SupportedOSPlatform("windows")]
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);
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
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, které obsahuje klíčové informace.

format
CngKeyBlobFormat

Objekt, který určuje formát keyBlob pole.

provider
CngProvider

The KSP.

Návraty

CngKey

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

Důležité

V Windows operačních systémech před Windows 7 a Windows Serverem 2008 R2 nejsou podporovány některé formáty binárního velkého objektu (BLOB) klíče CNG.

Platí pro

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 pomocí zadaného formátu.

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::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")]
public static System.Security.Cryptography.CngKey Import (byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
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, které obsahuje klíčové informace.

format
CngKeyBlobFormat

Objekt, který určuje formát keyBlob pole.

Návraty

CngKey

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.

Důležité

V Windows operačních systémech před Windows 7 a Windows Serverem 2008 R2 nejsou podporovány některé formáty binárního velkého objektu (BLOB) klíče CNG.

Platí pro