public class GenerateDataKeyRequest extends AbstractModel
Constructor and Description |
---|
GenerateDataKeyRequest() |
GenerateDataKeyRequest(GenerateDataKeyRequest 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 |
getEncryptionAlgorithm()
Get 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。
|
String |
getEncryptionContext()
Get key/value对的json字符串,如果使用该字段,则返回的DataKey在解密时需要填入相同的字符串
|
String |
getEncryptionPublicKey()
Get PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。
|
String |
getKeyId()
Get CMK全局唯一标识符
|
String |
getKeySpec()
Get 指定生成Datakey的加密算法以及Datakey大小,AES_128或者AES_256。KeySpec 和 NumberOfBytes 必须指定一个
|
Long |
getNumberOfBytes()
Get 生成的DataKey的长度,同时指定NumberOfBytes和KeySpec时,以NumberOfBytes为准。最小值为1, 最大值为1024。KeySpec 和 NumberOfBytes 必须指定一个
|
void |
setEncryptionAlgorithm(String EncryptionAlgorithm)
Set 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。
|
void |
setEncryptionContext(String EncryptionContext)
Set key/value对的json字符串,如果使用该字段,则返回的DataKey在解密时需要填入相同的字符串
|
void |
setEncryptionPublicKey(String EncryptionPublicKey)
Set PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。
|
void |
setKeyId(String KeyId)
Set CMK全局唯一标识符
|
void |
setKeySpec(String KeySpec)
Set 指定生成Datakey的加密算法以及Datakey大小,AES_128或者AES_256。KeySpec 和 NumberOfBytes 必须指定一个
|
void |
setNumberOfBytes(Long NumberOfBytes)
Set 生成的DataKey的长度,同时指定NumberOfBytes和KeySpec时,以NumberOfBytes为准。最小值为1, 最大值为1024。KeySpec 和 NumberOfBytes 必须指定一个
|
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 GenerateDataKeyRequest()
public GenerateDataKeyRequest(GenerateDataKeyRequest source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- CMK全局唯一标识符public String getKeySpec()
public void setKeySpec(String KeySpec)
KeySpec
- 指定生成Datakey的加密算法以及Datakey大小,AES_128或者AES_256。KeySpec 和 NumberOfBytes 必须指定一个public Long getNumberOfBytes()
public void setNumberOfBytes(Long NumberOfBytes)
NumberOfBytes
- 生成的DataKey的长度,同时指定NumberOfBytes和KeySpec时,以NumberOfBytes为准。最小值为1, 最大值为1024。KeySpec 和 NumberOfBytes 必须指定一个public String getEncryptionContext()
public void setEncryptionContext(String EncryptionContext)
EncryptionContext
- key/value对的json字符串,如果使用该字段,则返回的DataKey在解密时需要填入相同的字符串public String getEncryptionPublicKey()
public void setEncryptionPublicKey(String EncryptionPublicKey)
EncryptionPublicKey
- PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。public String getEncryptionAlgorithm()
public void setEncryptionAlgorithm(String EncryptionAlgorithm)
EncryptionAlgorithm
- 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。Copyright © 2022. All rights reserved.