Lingua

SafeEvpPKeyHandle.OpenKeyFromProvider Metodo

Definizione

Overload

Nome Descrizione
OpenKeyFromProvider(String, String)

Apre una chiave denominata usando un oggetto denominato OSSL_PROVIDER.

OpenKeyFromProvider(IEnumerable<String>, String, String)

OpenKeyFromProvider(String, String)

Origine:
SafeEvpPKeyHandle.OpenSsl.cs
Origine:
SafeEvpPKeyHandle.OpenSsl.cs
Origine:
SafeEvpPKeyHandle.OpenSsl.cs

Apre una chiave denominata usando un oggetto denominato 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

Parametri

providerName
String

Nome dell'oggetto OSSL_PROVIDER per elaborare la richiesta di apertura della chiave.

keyUri
String

URI assegnato dall'oggetto OSSL_PROVIDER della chiave da aprire.

Valori restituiti

Chiave aperta.

Attributi

Eccezioni

providerName o keyUri è null.

providerName oppure keyUri è la stringa vuota.

La piattaforma corrente non supporta i provider OpenSSL.

Impossibile aprire la chiave tramite l'oggetto specificato denominato OSSL_PROVIDER.

Commenti

Sia providerName che keyUri devono essere input attendibili.

Questa operazione avrà esito negativo se OpenSSL non riesce a caricare correttamente l'oggetto denominato OSSL_PROVIDERo se il nome OSSL_PROVIDER non può caricare la chiave denominata.

La sintassi per keyUri è determinata da ogni individuo denominato OSSL_PROVIDER.

Si applica a

OpenKeyFromProvider(IEnumerable<String>, String, String)

Origine:
SafeEvpPKeyHandle.OpenSsl.cs
[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(System.Collections.Generic.IEnumerable<string> providerNames, string keyUri, string? propertyQuery = default);
[<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 : seq<string> * string * string -> System.Security.Cryptography.SafeEvpPKeyHandle
Public Shared Function OpenKeyFromProvider (providerNames As IEnumerable(Of String), keyUri As String, Optional propertyQuery As String = Nothing) As SafeEvpPKeyHandle

Parametri

providerNames
IEnumerable<String>
keyUri
String
propertyQuery
String

Valori restituiti

Attributi

Si applica a