SafeEvpPKeyHandle.OpenKeyFromProvider(String, String) Método

Definição

Abre uma chave nomeada usando uma chave nomeada OSSL_PROVIDER.

public:
 static System::Security::Cryptography::SafeEvpPKeyHandle ^ OpenKeyFromProvider(System::String ^ providerName, System::String ^ keyUri);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public static System.Security.Cryptography.SafeEvpPKeyHandle OpenKeyFromProvider(string providerName, string keyUri);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
static member OpenKeyFromProvider : string * string -> System.Security.Cryptography.SafeEvpPKeyHandle
Public Shared Function OpenKeyFromProvider (providerName As String, keyUri As String) As SafeEvpPKeyHandle

Parâmetros

providerName
String

O nome do OSSL_PROVIDER para processar o pedido de abertura da chave.

keyUri
String

O URI atribuído pela OSSL_PROVIDER da chave para abrir.

Devoluções

A chave aberta.

Atributos

Exceções

providerName ou keyUri é null.

providerName ou keyUri é a corda vazia.

A plataforma atual não suporta Fornecedores OpenSSL.

A chave não podia ser aberta através do nome OSSL_PROVIDERespecificado .

Observações

Ambos providerName e keyUri devem ser inputs de confiança.

Esta operação falhará se o OpenSSL não conseguir carregar com sucesso a chave nomeada OSSL_PROVIDER, ou se a nomeada OSSL_PROVIDER não conseguir carregar a chave nomeada.

A sintaxe para keyUri é determinada por cada indivíduo nomeado OSSL_PROVIDER.

Aplica-se a