public static final class ReEncryptRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ReEncryptRequest |
build() |
ReEncryptRequest.Builder |
ciphertextBlob(String ciphertextBlob)
The ciphertext that you want to re-encrypt.
|
ReEncryptRequest.Builder |
destinationEncryptionContext(Map<String,?> destinationEncryptionContext)
A JSON string that consists of key-value pairs.
|
ReEncryptRequest.Builder |
destinationKeyId(String destinationKeyId)
The ID of the symmetric CMK that is used to re-encrypt the ciphertext after the ciphertext is decrypted.
|
ReEncryptRequest.Builder |
sourceEncryptionAlgorithm(String sourceEncryptionAlgorithm)
The encryption algorithm based on which the public key is used to encrypt the ciphertext specified by CiphertextBlob.
|
ReEncryptRequest.Builder |
sourceEncryptionContext(Map<String,?> sourceEncryptionContext)
A JSON string that consists of key-value pairs.
|
ReEncryptRequest.Builder |
sourceKeyId(String sourceKeyId)
The ID of the CMK that is used to decrypt the ciphertext.
|
ReEncryptRequest.Builder |
sourceKeyVersionId(String sourceKeyVersionId)
The ID of the CMK version that is used to decrypt the ciphertext.
|
public ReEncryptRequest.Builder ciphertextBlob(String ciphertextBlob)
You can set this parameter to the ciphertext that is returned after a symmetric or asymmetric encryption operation. * Symmetric encryption: the ciphertext returned after you call the [Encrypt](~~28949~~), [GenerateDataKey](~~28948~~), [GenerateDataKeyWithoutPlaintext](~~134043~~), or [GenerateAndExportDataKey](~~176804~~) operation * Asymmetric encryption: the public key-encrypted ciphertext returned after you call the [GenerateAndExportDataKey](~~176804~~) operation, or the ciphertext encrypted by using the public key of an asymmetric key pair outside KMS
public ReEncryptRequest.Builder destinationEncryptionContext(Map<String,?> destinationEncryptionContext)
public ReEncryptRequest.Builder destinationKeyId(String destinationKeyId)
public ReEncryptRequest.Builder sourceEncryptionAlgorithm(String sourceEncryptionAlgorithm)
Valid values: * RSAES_OAEP_SHA\_256 * RSAES_OAEP_SHA\_1 * SM2PKE > If you set CiphertextBlob to the public key-encrypted ciphertext that is returned after an asymmetric encryption operation, specify this parameter.
public ReEncryptRequest.Builder sourceEncryptionContext(Map<String,?> sourceEncryptionContext)
> If you set CiphertextBlob to the ciphertext that is returned after a symmetric encryption operation, specify this parameter.
public ReEncryptRequest.Builder sourceKeyId(String sourceKeyId)
This parameter is the globally unique ID of the CMK. > If you set CiphertextBlob to the public key-encrypted ciphertext that is returned after an asymmetric encryption operation, specify this parameter.
public ReEncryptRequest.Builder sourceKeyVersionId(String sourceKeyVersionId)
> If you set CiphertextBlob to the public key-encrypted ciphertext that is returned after an asymmetric encryption operation, specify this parameter.
public ReEncryptRequest build()
Copyright © 2023. All rights reserved.