Class EncryptRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.kms.v20190118.models.EncryptRequest
-
public class EncryptRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncryptionContext()Get key/value对的json字符串,如果指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024个字符StringgetKeyId()Get 调用CreateKey生成的CMK全局唯一标识符StringgetPlaintext()Get 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4KvoidsetEncryptionContext(String EncryptionContext)Set key/value对的json字符串,如果指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024个字符voidsetKeyId(String KeyId)Set 调用CreateKey生成的CMK全局唯一标识符voidsetPlaintext(String Plaintext)Set 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4KvoidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
EncryptRequest
public EncryptRequest()
-
EncryptRequest
public 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.
-
-
Method Detail
-
getKeyId
public String getKeyId()
Get 调用CreateKey生成的CMK全局唯一标识符- Returns:
- KeyId 调用CreateKey生成的CMK全局唯一标识符
-
setKeyId
public void setKeyId(String KeyId)
Set 调用CreateKey生成的CMK全局唯一标识符- Parameters:
KeyId- 调用CreateKey生成的CMK全局唯一标识符
-
getPlaintext
public String getPlaintext()
Get 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K- Returns:
- Plaintext 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K
-
setPlaintext
public void setPlaintext(String Plaintext)
Set 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K- Parameters:
Plaintext- 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K
-
getEncryptionContext
public String getEncryptionContext()
Get key/value对的json字符串,如果指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024个字符- Returns:
- EncryptionContext key/value对的json字符串,如果指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024个字符
-
setEncryptionContext
public void setEncryptionContext(String EncryptionContext)
Set key/value对的json字符串,如果指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024个字符- Parameters:
EncryptionContext- key/value对的json字符串,如果指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024个字符
-
-