CngKey.Import Metodo

Definizione

Crea una nuova chiave importando il materiale della chiave nel provider di archiviazione chiavi (KSP).

Overload

Import(Byte[], CngKeyBlobFormat, CngProvider)

Crea una chiave nuova importando il materiale della chiave specificato nel provider di archiviazione chiavi (KSP), usando il formato specificato.

Import(Byte[], CngKeyBlobFormat)

Crea una nuova chiave importando il materiale della chiave specificato nel provider di archiviazione chiavi (KSP) predefinito e utilizzando il formato specificato.

Import(Byte[], CngKeyBlobFormat, CngProvider)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

Crea una chiave nuova importando il materiale della chiave specificato nel provider di archiviazione chiavi (KSP), usando il formato specificato.

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

Parametri

keyBlob
Byte[]

Matrice che contiene le informazioni sulla chiave.

format
CngKeyBlobFormat

Oggetto che specifica il formato della matrice keyBlob.

provider
CngProvider

Provider di archiviazione chiavi.

Restituisce

Nuova chiave.

Attributi

Eccezioni

keyBlob, format o provider è null.

Cryptography Next Generation non è supportato in questo sistema.

Tutti gli altri errori.

Commenti

Importante

Nei sistemi operativi Windows precedenti a Windows 7 e Windows Server 2008 R2 alcuni formati BLOB (Key Binary Object) CNG non sono supportati.

Si applica a

Import(Byte[], CngKeyBlobFormat)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

Crea una nuova chiave importando il materiale della chiave specificato nel provider di archiviazione chiavi (KSP) predefinito e utilizzando il formato specificato.

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

Parametri

keyBlob
Byte[]

Matrice che contiene le informazioni sulla chiave.

format
CngKeyBlobFormat

Oggetto che specifica il formato della matrice keyBlob.

Restituisce

Nuova chiave.

Attributi

Eccezioni

keyBlob o format è null.

Cryptography Next Generation non è supportato in questo sistema.

Tutti gli altri errori.

Commenti

Il provider di servizi di configurazione predefinito è MicrosoftSoftwareKeyStorageProvider.

Importante

Nei sistemi operativi Windows precedenti a Windows 7 e Windows Server 2008 R2 alcuni formati BLOB (Key Binary Object) CNG non sono supportati.

Si applica a