語言

SafeEvpPKeyHandle.OpenKeyFromProvider 方法

定義

多載

名稱 Description
OpenKeyFromProvider(String, String)

使用 命名金鑰開啟一個命名 OSSL_PROVIDER金鑰。

OpenKeyFromProvider(IEnumerable<String>, String, String)

OpenKeyFromProvider(String, String)

來源:
SafeEvpPKeyHandle.OpenSsl.cs
來源:
SafeEvpPKeyHandle.OpenSsl.cs
來源:
SafeEvpPKeyHandle.OpenSsl.cs

使用 命名金鑰開啟一個命名 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

參數

providerName
String

處理金鑰開啟請求的名稱 OSSL_PROVIDER 。

keyUri
String

由鑰匙指派 OSSL_PROVIDER 的 URI 來開啟。

傳回

打開的鑰匙。

屬性

例外狀況

providerName 或 keyUri 為 null。

providerName 或 keyUri 是空字串。

目前平台不支援 OpenSSL 提供者。

該金鑰無法透過指定的名稱 OSSL_PROVIDER開啟。

備註

兩者都providerNamekeyUri必須是可信的輸入。

若 OpenSSL 無法成功載入命名 OSSL_PROVIDER金鑰,或該命名 OSSL_PROVIDER 者無法載入命名金鑰,此操作將失敗。

的 keyUri 語法由每個名為 OSSL_PROVIDER的個體決定。

適用於

OpenKeyFromProvider(IEnumerable<String>, String, String)

來源:
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

參數

providerNames
IEnumerable<String>
keyUri
String
propertyQuery
String

傳回

屬性

適用於