public static class ImportKeyRequest.Builder extends Object
ImportKeyRequest builder.| Constructor and Description |
|---|
Builder(String vaultBaseUrl,
String keyName,
com.microsoft.azure.keyvault.webkey.JsonWebKey key)
The builder for constructing
ImportKeyRequest object. |
| Modifier and Type | Method and Description |
|---|---|
ImportKeyRequest |
build()
builds the
ImportKeyRequest object. |
ImportKeyRequest.Builder |
withAttributes(Attributes attributes)
Set the key attributes value.
|
ImportKeyRequest.Builder |
withHsm(boolean isHsm)
Set the isHsm to true if the key is imported as a hardware key to
HSM, false otherwise.
|
ImportKeyRequest.Builder |
withTags(Map<String,String> tags)
Set the tags value.
|
public Builder(String vaultBaseUrl, String keyName, com.microsoft.azure.keyvault.webkey.JsonWebKey key)
ImportKeyRequest object.vaultBaseUrl - The vault name, e.g. https://myvault.vault.azure.net.keyName - The name of the key in the given vault.key - The Json web key.public ImportKeyRequest.Builder withHsm(boolean isHsm)
isHsm - True, if the key is hardware key to be stored in HSM.
false otherwisepublic ImportKeyRequest.Builder withAttributes(Attributes attributes)
attributes - the key management attributes value to setpublic ImportKeyRequest.Builder withTags(Map<String,String> tags)
tags - Application-specific metadata in the form of key-value
pairs.public ImportKeyRequest build()
ImportKeyRequest object.ImportKeyRequest object./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/