KeyVaultClientExtensions.ImportKeyAsync Methode

Definition

Überlädt

ImportKeyAsync(IKeyVaultClient, String, String, KeyBundle, Nullable<Boolean>, CancellationToken)

Importiert einen Schlüssel in den angegebenen Tresor.

ImportKeyAsync(IKeyVaultClient, String, String, JsonWebKey, Nullable<Boolean>, KeyAttributes, IDictionary<String,String>, CancellationToken)

Importiert einen extern erstellten Schlüssel, speichert ihn und gibt Schlüsselparameter und Attribute an den Client zurück.

ImportKeyAsync(IKeyVaultClient, String, String, KeyBundle, Nullable<Boolean>, CancellationToken)

Quelle:
KeyVaultClientExtensions.cs

Importiert einen Schlüssel in den angegebenen Tresor.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.KeyBundle> ImportKeyAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string keyName, Microsoft.Azure.KeyVault.Models.KeyBundle keyBundle, bool? importToHardware = default, System.Threading.CancellationToken cancellationToken = default);
static member ImportKeyAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * Microsoft.Azure.KeyVault.Models.KeyBundle * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.KeyBundle>
<Extension()>
Public Function ImportKeyAsync (operations As IKeyVaultClient, vaultBaseUrl As String, keyName As String, keyBundle As KeyBundle, Optional importToHardware As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyBundle)

Parameter

operations
IKeyVaultClient
vaultBaseUrl
String

Der Tresorname, z. B. https://myvault.vault.azure.net

keyName
String

Der Schlüsselname

keyBundle
KeyBundle

Schlüsselbundle

importToHardware
Nullable<Boolean>

Ob als Hardwareschlüssel (HSM) oder Softwareschlüssel importiert werden soll

cancellationToken
CancellationToken

Optionales Abbruchtoken

Gibt zurück

Importiertes Schlüsselpaket in den Tresor

Gilt für:

ImportKeyAsync(IKeyVaultClient, String, String, JsonWebKey, Nullable<Boolean>, KeyAttributes, IDictionary<String,String>, CancellationToken)

Quelle:
KeyVaultClientExtensions.cs

Importiert einen extern erstellten Schlüssel, speichert ihn und gibt Schlüsselparameter und Attribute an den Client zurück.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.KeyBundle> ImportKeyAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string keyName, Microsoft.Azure.KeyVault.WebKey.JsonWebKey key, bool? hsm = default, Microsoft.Azure.KeyVault.Models.KeyAttributes keyAttributes = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Threading.CancellationToken cancellationToken = default);
static member ImportKeyAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * Microsoft.Azure.KeyVault.WebKey.JsonWebKey * Nullable<bool> * Microsoft.Azure.KeyVault.Models.KeyAttributes * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.KeyBundle>
<Extension()>
Public Function ImportKeyAsync (operations As IKeyVaultClient, vaultBaseUrl As String, keyName As String, key As JsonWebKey, Optional hsm As Nullable(Of Boolean) = Nothing, Optional keyAttributes As KeyAttributes = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyBundle)

Parameter

operations
IKeyVaultClient

Die Vorgangsgruppe für diese Erweiterungsmethode.

vaultBaseUrl
String

Der Tresorname, z. B https://myvault.vault.azure.net. .

keyName
String

Name für den importierten Schlüssel.

key
JsonWebKey

Der JSON-Webschlüssel

hsm
Nullable<Boolean>

Ob als Hardwareschlüssel (HSM) oder Softwareschlüssel importiert werden soll.

keyAttributes
KeyAttributes

Die Schlüsselverwaltungsattribute.

tags
IDictionary<String,String>

Anwendungsspezifische Metadaten in Form von Schlüssel-Wert-Paaren.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Der Schlüsselimportvorgang kann verwendet werden, um einen beliebigen Schlüsseltyp in eine Azure-Key Vault zu importieren. Wenn der benannte Schlüssel bereits vorhanden ist, erstellt der Azure-Schlüsseltresor eine neue Version des Schlüssels. Für diesen Vorgang ist die Schlüssel-/Importberechtigung erforderlich.

Gilt für: