public class DecryptRequest extends AbstractModel
Constructor and Description |
---|
DecryptRequest() |
DecryptRequest(DecryptRequest 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 |
getCiphertextBlob()
Get The ciphertext data to be decrypted.
|
String |
getEncryptionAlgorithm()
Get Asymmetric encryption algorithm.
|
String |
getEncryptionContext()
Get JSON string of key-value pair.
|
String |
getEncryptionPublicKey()
Get PEM-encoded public key (2048-bit RSA/SM2 key), which can be used to encrypt the `Plaintext` returned.
|
void |
setCiphertextBlob(String CiphertextBlob)
Set The ciphertext data to be decrypted.
|
void |
setEncryptionAlgorithm(String EncryptionAlgorithm)
Set Asymmetric encryption algorithm.
|
void |
setEncryptionContext(String EncryptionContext)
Set JSON string of key-value pair.
|
void |
setEncryptionPublicKey(String EncryptionPublicKey)
Set PEM-encoded public key (2048-bit RSA/SM2 key), which can be used to encrypt the `Plaintext` returned.
|
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 DecryptRequest()
public DecryptRequest(DecryptRequest source)
public String getCiphertextBlob()
public void setCiphertextBlob(String CiphertextBlob)
CiphertextBlob
- The ciphertext data to be decrypted.public String getEncryptionContext()
public void setEncryptionContext(String EncryptionContext)
EncryptionContext
- JSON string of key-value pair. If this parameter is specified for `Encrypt`, the same parameter needs to be provided when the `Decrypt` API is called. The maximum length is 1,024 bytes.public String getEncryptionPublicKey()
public void setEncryptionPublicKey(String EncryptionPublicKey)
EncryptionPublicKey
- PEM-encoded public key (2048-bit RSA/SM2 key), which can be used to encrypt the `Plaintext` returned. If this field is left empty, the `Plaintext` will not be encrypted.public String getEncryptionAlgorithm()
public void setEncryptionAlgorithm(String EncryptionAlgorithm)
EncryptionAlgorithm
- Asymmetric encryption algorithm. Valid values: `SM2` (C1C3C2 ciphertext is returned), `SM2_C1C3C2_ASN1` (C1C3C2 ASN1 ciphertext is returned), `RSAES_PKCS1_V1_5`, `RSAES_OAEP_SHA_1`, and `RSAES_OAEP_SHA_256`. This field is used in combination with `EncryptionPublicKey` for encryption. If it is left empty, an SM2 public key will be used by default.Copyright © 2023. All rights reserved.