public enum SSEAlgorithm extends Enum<SSEAlgorithm>
限定符和类型 | 方法和说明 |
---|---|
static SSEAlgorithm |
fromString(String algorithm)
Returns the SSEAlgorithm enum corresponding to the given string;
or null if and only if the given algorithm is null.
|
String |
getAlgorithm() |
static SSEAlgorithm |
getDefault()
Returns the default server side encryption algorithm, which is AES256.
|
String |
toString() |
static SSEAlgorithm |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SSEAlgorithm[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SSEAlgorithm AES256
public static final SSEAlgorithm KMS
public static SSEAlgorithm[] values()
for (SSEAlgorithm c : SSEAlgorithm.values()) System.out.println(c);
public static SSEAlgorithm valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public String getAlgorithm()
public String toString()
toString
在类中 Enum<SSEAlgorithm>
public static SSEAlgorithm fromString(String algorithm)
IllegalArgumentException
- if the specified algorithm is not
supported.public static SSEAlgorithm getDefault()
Copyright © 2019. All Rights Reserved.