public class SSESpecification extends Object implements Jsonizable
| Constructor and Description |
|---|
SSESpecification(boolean enable)
构造一个SSESpecification对象。
注意:传入的enable必须为false,原因是当enableStream为true时,必须指定keyType。
如果需要设置开启服务器端加密,请使用另外两个构造函数。
|
SSESpecification(boolean enable,
SSEKeyType keyType)
构造一个SSESpecification对象。
注意:
1.
|
SSESpecification(boolean enable,
SSEKeyType keyType,
String keyId,
String roleArn)
构造一个SSESpecification对象。
注意:
1.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyId()
获取keyId参数
|
SSEKeyType |
getKeyType()
获取keyType参数
|
String |
getRoleArn()
获取roleArn参数
|
boolean |
isEnable()
返回是否开启服务器端加密
|
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
void |
setEnable(boolean enable)
设置是否开启服务器端加密
|
void |
setKeyId(String keyId)
设置keyId参数
|
void |
setKeyType(SSEKeyType keyType)
设置keyType参数
|
void |
setRoleArn(String roleArn)
设置roleArn参数
|
String |
toString() |
public SSESpecification(boolean enable)
enable - 必须为false,代表关闭服务器端加密public SSESpecification(boolean enable,
SSEKeyType keyType)
enable - 必须为true,代表开启服务器端加密keyType - 必须为SSE_KMS_SERVICE,代表使用KMS的服务主密钥public SSESpecification(boolean enable,
SSEKeyType keyType,
String keyId,
String roleArn)
enable - 必须为true,代表开启服务器端加密keyType - 必须为SSE_BYOK,代表使用KMS的用户主密钥,支持用户自定义秘钥上传keyId - KMS用户主密钥的idroleArn - 授权表格存储临时访问keyId的全局资源描述符public boolean isEnable()
public void setEnable(boolean enable)
enable - public SSEKeyType getKeyType()
public void setKeyType(SSEKeyType keyType)
keyType - public String getKeyId()
public void setKeyId(String keyId)
keyId - public String getRoleArn()
public void setRoleArn(String roleArn)
roleArn - public String jsonize()
jsonize in interface Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize in interface JsonizableCopyright © 2024. All Rights Reserved.