Class EncryptByWhiteBoxRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.kms.v20190118.models.EncryptByWhiteBoxRequest
-
public class EncryptByWhiteBoxRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description EncryptByWhiteBoxRequest()EncryptByWhiteBoxRequest(EncryptByWhiteBoxRequest 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 StringgetInitializationVector()Get 初始化向量,大小为 16 Bytes,加密算法会使用到, base64编码;如果不传,则由后端服务随机生成。用户需要自行保存该值,作为解密的参数。StringgetKeyId()Get 白盒密钥的全局唯一标识符StringgetPlainText()Get 待加密的文本, base64编码,文本的原始长度最大不超过4KBvoidsetInitializationVector(String InitializationVector)Set 初始化向量,大小为 16 Bytes,加密算法会使用到, base64编码;如果不传,则由后端服务随机生成。用户需要自行保存该值,作为解密的参数。voidsetKeyId(String KeyId)Set 白盒密钥的全局唯一标识符voidsetPlainText(String PlainText)Set 待加密的文本, base64编码,文本的原始长度最大不超过4KBvoidtoMap(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
-
EncryptByWhiteBoxRequest
public EncryptByWhiteBoxRequest()
-
EncryptByWhiteBoxRequest
public EncryptByWhiteBoxRequest(EncryptByWhiteBoxRequest 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 白盒密钥的全局唯一标识符- Returns:
- KeyId 白盒密钥的全局唯一标识符
-
setKeyId
public void setKeyId(String KeyId)
Set 白盒密钥的全局唯一标识符- Parameters:
KeyId- 白盒密钥的全局唯一标识符
-
getPlainText
public String getPlainText()
Get 待加密的文本, base64编码,文本的原始长度最大不超过4KB- Returns:
- PlainText 待加密的文本, base64编码,文本的原始长度最大不超过4KB
-
setPlainText
public void setPlainText(String PlainText)
Set 待加密的文本, base64编码,文本的原始长度最大不超过4KB- Parameters:
PlainText- 待加密的文本, base64编码,文本的原始长度最大不超过4KB
-
getInitializationVector
public String getInitializationVector()
Get 初始化向量,大小为 16 Bytes,加密算法会使用到, base64编码;如果不传,则由后端服务随机生成。用户需要自行保存该值,作为解密的参数。- Returns:
- InitializationVector 初始化向量,大小为 16 Bytes,加密算法会使用到, base64编码;如果不传,则由后端服务随机生成。用户需要自行保存该值,作为解密的参数。
-
setInitializationVector
public void setInitializationVector(String InitializationVector)
Set 初始化向量,大小为 16 Bytes,加密算法会使用到, base64编码;如果不传,则由后端服务随机生成。用户需要自行保存该值,作为解密的参数。- Parameters:
InitializationVector- 初始化向量,大小为 16 Bytes,加密算法会使用到, base64编码;如果不传,则由后端服务随机生成。用户需要自行保存该值,作为解密的参数。
-
-