public static class CreateKeyRequest.Builder extends Object
CreateKeyRequest builder.| Constructor and Description |
|---|
Builder(String vaultBaseUrl,
String keyName,
com.microsoft.azure.keyvault.webkey.JsonWebKeyType keyType)
The builder for constructing
CreateKeyRequest object. |
| Modifier and Type | Method and Description |
|---|---|
CreateKeyRequest |
build()
builds the
CreateKeyRequest object. |
CreateKeyRequest.Builder |
withAttributes(Attributes attributes)
Set the key attributes value.
|
CreateKeyRequest.Builder |
withCurve(JsonWebKeyCurveName curve)
Set the curve value.
|
CreateKeyRequest.Builder |
withKeyOperations(List<com.microsoft.azure.keyvault.webkey.JsonWebKeyOperation> keyOperations)
Set the key operations value.
|
CreateKeyRequest.Builder |
withKeySize(Integer size)
Set the key size value.
|
CreateKeyRequest.Builder |
withTags(Map<String,String> tags)
Set the tags value.
|
public Builder(String vaultBaseUrl, String keyName, com.microsoft.azure.keyvault.webkey.JsonWebKeyType keyType)
CreateKeyRequest object.vaultBaseUrl - The vault name, e.g. https://myvault.vault.azure.netkeyName - The name of the key in the given vaultkeyType - The type of key to create. Valid key types, see JsonWebKeyType.
Supported JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM,
Octet. Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct'public CreateKeyRequest.Builder withKeySize(Integer size)
size - the size of the key.public CreateKeyRequest.Builder withKeyOperations(List<com.microsoft.azure.keyvault.webkey.JsonWebKeyOperation> keyOperations)
keyOperations - the key operation list.public CreateKeyRequest.Builder withAttributes(Attributes attributes)
attributes - the key management attributes value to set.public CreateKeyRequest.Builder withTags(Map<String,String> tags)
tags - Application-specific metadata in the form of key-value pairs.public CreateKeyRequest.Builder withCurve(JsonWebKeyCurveName curve)
curve - Defines values for JsonWebKeyCurveName;public CreateKeyRequest build()
CreateKeyRequest object.CreateKeyRequest object./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/