CngKey.Import Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Cria uma nova chave importando material de chave para o fornecedor de armazenamento de chaves (KSP).
Sobrecargas
| Name | Description |
|---|---|
| Import(Byte[], CngKeyBlobFormat, CngProvider) |
Cria uma nova chave importando o material da chave especificado para o fornecedor de armazenamento de chaves (KSP) especificado, usando o formato especificado. |
| Import(Byte[], CngKeyBlobFormat) |
Cria uma nova chave ao importar o material da chave especificado para o fornecedor de armazenamento de chaves predefinido (KSP) e usar o formato especificado. |
Import(Byte[], CngKeyBlobFormat, CngProvider)
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
Cria uma nova chave importando o material da chave especificado para o fornecedor de armazenamento de chaves (KSP) especificado, usando o formato especificado.
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
Parâmetros
- keyBlob
- Byte[]
Um array que contém a informação chave.
- format
- CngKeyBlobFormat
Um objeto que especifica o formato do keyBlob array.
- provider
- CngProvider
A KSP.
Devoluções
Uma nova chave.
- Atributos
Exceções
keyBlob, format, ou provider é null.
A Criptografia de Nova Geração (CNG) não é suportada neste sistema.
Todos os outros erros.
Observações
Importante
Nos sistemas operativos Windows anteriores ao Windows 7 e ao Windows Server 2008 R2, alguns formatos CNG key binary large object (BLOB) não são suportados.
Aplica-se a
Import(Byte[], CngKeyBlobFormat)
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
- Origem:
- Cng.NotSupported.cs
Cria uma nova chave ao importar o material da chave especificado para o fornecedor de armazenamento de chaves predefinido (KSP) e usar o formato especificado.
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
Parâmetros
- keyBlob
- Byte[]
Um array que contém a informação chave.
- format
- CngKeyBlobFormat
Um objeto que especifica o formato do keyBlob array.
Devoluções
Uma nova chave.
- Atributos
Exceções
keyBlob ou format é null.
A Criptografia de Nova Geração (CNG) não é suportada neste sistema.
Todos os outros erros.
Observações
O KSP padrão é MicrosoftSoftwareKeyStorageProvider.
Importante
Nos sistemas operativos Windows anteriores ao Windows 7 e ao Windows Server 2008 R2, alguns formatos CNG key binary large object (BLOB) não são suportados.