public class EncryptRequest extends AbstractModel
header, skipSign| 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 key/value对的json字符串,如果指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024个字符 | 
| String | getKeyId()Get 调用CreateKey生成的CMK全局唯一标识符 | 
| String | getPlaintext()Get 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K | 
| void | setEncryptionContext(String EncryptionContext)Set key/value对的json字符串,如果指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024个字符 | 
| void | setKeyId(String KeyId)Set 调用CreateKey生成的CMK全局唯一标识符 | 
| void | setPlaintext(String Plaintext)Set 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic EncryptRequest()
public EncryptRequest(EncryptRequest source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId - 调用CreateKey生成的CMK全局唯一标识符public String getPlaintext()
public void setPlaintext(String Plaintext)
Plaintext - 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4Kpublic String getEncryptionContext()
public void setEncryptionContext(String EncryptionContext)
EncryptionContext - key/value对的json字符串,如果指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024个字符Copyright © 2025. All rights reserved.