public class EncryptRequest extends AbstractModel
Constructor and Description |
---|
EncryptRequest() |
EncryptRequest(EncryptRequest 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 |
getEncryptionContext()
Get JSON string of key-value pair.
|
String |
getKeyId()
Get Globally unique ID of the CMK generated by calling the `CreateKey` API
|
String |
getPlaintext()
Get Encrypted plaintext data.
|
void |
setEncryptionContext(String EncryptionContext)
Set JSON string of key-value pair.
|
void |
setKeyId(String KeyId)
Set Globally unique ID of the CMK generated by calling the `CreateKey` API
|
void |
setPlaintext(String Plaintext)
Set Encrypted plaintext data.
|
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 EncryptRequest()
public EncryptRequest(EncryptRequest source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- Globally unique ID of the CMK generated by calling the `CreateKey` APIpublic String getPlaintext()
public void setPlaintext(String Plaintext)
Plaintext
- Encrypted plaintext data. This field must be Base64-encoded. The maximum size of the original data is 4 KBpublic String getEncryptionContext()
public void setEncryptionContext(String EncryptionContext)
EncryptionContext
- JSON string of key-value pair. If this parameter is specified, the same parameter needs to be provided when the `Decrypt` API is called. It is up to 1,024 charactersCopyright © 2023. All rights reserved.