public class GenerateDataKeyResponse extends AbstractModel
Constructor and Description |
---|
GenerateDataKeyResponse() |
GenerateDataKeyResponse(GenerateDataKeyResponse source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getCiphertextBlob()
Get Ciphertext of the data key, which should be kept by yourself.
|
String |
getKeyId()
Get Globally unique CMK ID
|
String |
getPlaintext()
Get If `EncryptionPublicKey` is left empty, a Base64-encoded ciphertext will be returned.
|
String |
getRequestId()
Get The unique request ID, which is returned for each request.
|
void |
setCiphertextBlob(String CiphertextBlob)
Set Ciphertext of the data key, which should be kept by yourself.
|
void |
setKeyId(String KeyId)
Set Globally unique CMK ID
|
void |
setPlaintext(String Plaintext)
Set If `EncryptionPublicKey` is left empty, a Base64-encoded ciphertext will be returned.
|
void |
setRequestId(String RequestId)
Set The unique request ID, which is returned for each request.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public GenerateDataKeyResponse()
public GenerateDataKeyResponse(GenerateDataKeyResponse source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- Globally unique CMK IDpublic String getPlaintext()
public void setPlaintext(String Plaintext)
Plaintext
- If `EncryptionPublicKey` is left empty, a Base64-encoded ciphertext will be returned. To get the plaintext, you need to decode the ciphertext first.
If `EncryptionPublicKey` is specified, this field will return the Base64-encoded ciphertext encrypted with the specified public key. To get the plaintext, you need to decode the ciphertext and upload the corresponding private key.public String getCiphertextBlob()
public void setCiphertextBlob(String CiphertextBlob)
CiphertextBlob
- Ciphertext of the data key, which should be kept by yourself. KMS does not host user data keys. You can call the `Decrypt` API to get the plaintext of the data key from `CiphertextBlob`.public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- The unique request ID, which is returned for each request. RequestId is required for locating a problem.Copyright © 2023. All rights reserved.