Share via


CngKey.Import Metoda

Definice

Vytvoří nový klíč importem materiálu klíče do poskytovatele ú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 poskytovatele úložiště klíčů (KSP) v zadaném formátu.

Import(Byte[], CngKeyBlobFormat)

Vytvoří nový klíč importem zadaného materiálu klíče do výchozího poskytovatele úložiště klíčů (KSP) a v zadaném formátu.

Import(Byte[], CngKeyBlobFormat, CngProvider)

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 poskytovatele úložiště klíčů (KSP) v zadaném 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 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 další generace (CNG) není v tomto systému podporována.

Všechny ostatní chyby.

Poznámky

Důležité

V operačních systémech Windows starších než Windows 7 a Windows Server 2008 R2 nejsou některé formáty binárních velkých objektů (BLOB) klíče CNG podporovány.

Platí pro

Import(Byte[], CngKeyBlobFormat)

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 poskytovatele úložiště klíčů (KSP) a v zadaném 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 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 další generace (CNG) není v tomto systému podporována.

Všechny ostatní chyby.

Poznámky

Výchozí KSP je MicrosoftSoftwareKeyStorageProvider.

Důležité

V operačních systémech Windows starších než Windows 7 a Windows Server 2008 R2 nejsou některé formáty binárních velkých objektů (BLOB) klíče CNG podporovány.

Platí pro