public class SSESpecification extends Object implements Jsonizable
构造器和说明 |
---|
SSESpecification(boolean enable)
构造一个SSESpecification对象。
|
SSESpecification(boolean enable,
SSEKeyType keyType)
构造一个SSESpecification对象。
|
SSESpecification(boolean enable,
SSEKeyType keyType,
String keyId,
String roleArn)
构造一个SSESpecification对象。
|
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 Jsonizable
public void jsonize(StringBuilder sb, String newline)
jsonize
在接口中 Jsonizable
Copyright © 2021. All Rights Reserved.