Language

SafeEvpPKeyHandle.OpenKeyFromProvider メソッド

定義

オーバーロード

名前 説明
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を使用してキーを開くことができませんでした。

注釈

providerNameとkeyUriの両方が信頼できる入力である必要があります。

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

返品

属性

適用対象