public static final class GenerateAndExportDataKeyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
GenerateAndExportDataKeyRequest |
build() |
GenerateAndExportDataKeyRequest.Builder |
encryptionContext(Map<String,?> encryptionContext)
A JSON string of key-value pairs.
|
GenerateAndExportDataKeyRequest.Builder |
keyId(String keyId)
The globally unique ID of the CMK.
|
GenerateAndExportDataKeyRequest.Builder |
keySpec(String keySpec)
The length of the data key that you want to generate.
|
GenerateAndExportDataKeyRequest.Builder |
numberOfBytes(Integer numberOfBytes)
The length of the data key that you want to generate.
|
GenerateAndExportDataKeyRequest.Builder |
publicKeyBlob(String publicKeyBlob)
A Base64-encoded public key.
|
GenerateAndExportDataKeyRequest.Builder |
wrappingAlgorithm(String wrappingAlgorithm)
The encryption algorithm based on which you want to use the public key specified by PublicKeyBlob to encrypt the data key.
|
GenerateAndExportDataKeyRequest.Builder |
wrappingKeySpec(String wrappingKeySpec)
The key type of the public key specified by PublicKeyBlob.
|
public GenerateAndExportDataKeyRequest.Builder encryptionContext(Map<String,?> encryptionContext)
public GenerateAndExportDataKeyRequest.Builder keyId(String keyId)
public GenerateAndExportDataKeyRequest.Builder keySpec(String keySpec)
* AES\_256: a 256-bit symmetric key * AES\_128: a 128-bit symmetric key > We recommend that you use the KeySpec or NumberOfBytes parameter to specify the length of a data key. If both parameters are not specified, KMS generates a 256-bit data key. If both parameters are specified, KMS ignores the KeySpec parameter.
public GenerateAndExportDataKeyRequest.Builder numberOfBytes(Integer numberOfBytes)
Valid values: 1 to 1024. Unit: bytes.
public GenerateAndExportDataKeyRequest.Builder publicKeyBlob(String publicKeyBlob)
public GenerateAndExportDataKeyRequest.Builder wrappingAlgorithm(String wrappingAlgorithm)
Valid values: * RSAES_OAEP_SHA\_256 * RSAES_OAEP_SHA\_1 * SM2PKE
public GenerateAndExportDataKeyRequest.Builder wrappingKeySpec(String wrappingKeySpec)
Valid values: * RSA\_2048 * EC_SM2
public GenerateAndExportDataKeyRequest build()
Copyright © 2023. All rights reserved.