com.aliyun.dkms.gcs.sdk.models.EncryptRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-dkms-gcs-sdk Show documentation
Show all versions of alibabacloud-dkms-gcs-sdk Show documentation
Dedicated Key Management Service Java SDK
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dkms.gcs.sdk.models;
import com.aliyun.tea.*;
public class EncryptRequest extends TeaModel {
/**
* 密钥的全局唯一标识符该参数也可以被指定为密钥别名
*/
@NameInMap("KeyId")
public String keyId;
/**
* 待加密的明文数据
*/
@NameInMap("Plaintext")
public byte[] plaintext;
/**
* 加密算法
*/
@NameInMap("Algorithm")
public String algorithm;
/**
* 对数据密钥加密时使用的GCM加密模式认证数据
*/
@NameInMap("Aad")
public byte[] aad;
/**
* 对数据加密时使用的初始向量
*/
@NameInMap("Iv")
public byte[] iv;
/**
* 填充模式
*/
@NameInMap("PaddingMode")
public String paddingMode;
/**
* 请求头
*/
@NameInMap("requestHeaders")
public java.util.Map requestHeaders;
public static EncryptRequest build(java.util.Map map) throws Exception {
EncryptRequest self = new EncryptRequest();
return TeaModel.build(map, self);
}
public EncryptRequest setKeyId(String keyId) {
this.keyId = keyId;
return this;
}
public String getKeyId() {
return this.keyId;
}
public EncryptRequest setPlaintext(byte[] plaintext) {
this.plaintext = plaintext;
return this;
}
public byte[] getPlaintext() {
return this.plaintext;
}
public EncryptRequest setAlgorithm(String algorithm) {
this.algorithm = algorithm;
return this;
}
public String getAlgorithm() {
return this.algorithm;
}
public EncryptRequest setAad(byte[] aad) {
this.aad = aad;
return this;
}
public byte[] getAad() {
return this.aad;
}
public EncryptRequest setIv(byte[] iv) {
this.iv = iv;
return this;
}
public byte[] getIv() {
return this.iv;
}
public EncryptRequest setPaddingMode(String paddingMode) {
this.paddingMode = paddingMode;
return this;
}
public String getPaddingMode() {
return this.paddingMode;
}
public EncryptRequest setRequestHeaders(java.util.Map requestHeaders) {
this.requestHeaders = requestHeaders;
return this;
}
public java.util.Map getRequestHeaders() {
return this.requestHeaders;
}
}