public class EncryptByWhiteBoxRequest extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getInitializationVector()
Get Base64-encoded initialization vector of 16 bytes, which will be used by the encryption algorithm.
|
String |
getKeyId()
Get Globally unique white-box key ID
|
String |
getPlainText()
Get Base64-encoded text to be encrypted.
|
void |
setInitializationVector(String InitializationVector)
Set Base64-encoded initialization vector of 16 bytes, which will be used by the encryption algorithm.
|
void |
setKeyId(String KeyId)
Set Globally unique white-box key ID
|
void |
setPlainText(String PlainText)
Set Base64-encoded text to be encrypted.
|
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 EncryptByWhiteBoxRequest()
public EncryptByWhiteBoxRequest(EncryptByWhiteBoxRequest source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- Globally unique white-box key IDpublic String getPlainText()
public void setPlainText(String PlainText)
PlainText
- Base64-encoded text to be encrypted. The size of the original text cannot exceed 4 KB.public String getInitializationVector()
public void setInitializationVector(String InitializationVector)
InitializationVector
- Base64-encoded initialization vector of 16 bytes, which will be used by the encryption algorithm. If this parameter is not passed in, the backend service will generate a random one. You should save this value as a parameter for decryption.Copyright © 2023. All rights reserved.