你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CreateKeyRequest.Builder 类

  • java.lang.Object
    • com.microsoft.azure.keyvault.requests.CreateKeyRequest.Builder

public class Builder

生成器 CreateKeyRequest

构造函数摘要

构造函数 说明
Builder(String vaultBaseUrl, String keyName, JsonWebKeyType keyType)

用于构造 CreateKeyRequest 对象的生成器。

方法摘要

修饰符和类型 方法和描述
CreateKeyRequest build()

生成 CreateKeyRequest 对象。

Builder withAttributes(Attributes attributes)

设置键属性值。

Builder withKeyOperations(List<JsonWebKeyOperation> keyOperations)

设置键操作值。

Builder withKeySize(Integer size)

设置密钥大小值。

Builder withTags(Map<String, String> tags)

设置标记值。

构造函数详细信息

Builder

public Builder(String vaultBaseUrl, String keyName, JsonWebKeyType keyType)

用于构造 CreateKeyRequest 对象的生成器。

Parameters:

vaultBaseUrl - 保管库名称,例如 https://myvault.vault.azure.net
keyName - 给定保管库中密钥的名称
keyType - 要创建的密钥类型。 有效的密钥类型,请参阅 JsonWebKeyType。 Elliptic Curve、RSA、HSM、Octet 支持的 jsonWebKey 密钥类型 (kty) 。 可能的值包括:“EC”、“RSA”、“RSA-HSM”、“oct”

方法详细信息

build

public CreateKeyRequest build()

生成 CreateKeyRequest 对象。

Returns:

对象 CreateKeyRequest

withAttributes

public Builder withAttributes(Attributes attributes)

设置键属性值。

Parameters:

attributes - 要设置的密钥管理属性值。

Returns:

Builder 对象本身。

withKeyOperations

public Builder withKeyOperations(List keyOperations)

设置键操作值。

Parameters:

keyOperations - 键操作列表。

Returns:

Builder 对象本身。

withKeySize

public Builder withKeySize(Integer size)

设置密钥大小值。

Parameters:

size - 密钥的大小。

Returns:

Builder 对象本身。

withTags

public Builder withTags(Map tags)

设置标记值。

Parameters:

tags - 键值对形式的应用程序特定元数据。

Returns:

Builder 对象本身。

适用于