public enum S3AEncryptionMethods extends Enum<S3AEncryptionMethods>
Enum Constant and Description |
---|
CSE_CUSTOM |
CSE_KMS |
NONE |
SSE_C |
SSE_KMS |
SSE_S3 |
Modifier and Type | Method and Description |
---|---|
String |
getMethod() |
static S3AEncryptionMethods |
getMethod(String name)
Get the encryption mechanism from the value provided.
|
boolean |
isServerSide()
Flag to indicate this is a server-side encryption option.
|
static S3AEncryptionMethods |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static S3AEncryptionMethods[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final S3AEncryptionMethods NONE
public static final S3AEncryptionMethods SSE_S3
public static final S3AEncryptionMethods SSE_KMS
public static final S3AEncryptionMethods SSE_C
public static final S3AEncryptionMethods CSE_KMS
public static final S3AEncryptionMethods CSE_CUSTOM
public static S3AEncryptionMethods[] values()
for (S3AEncryptionMethods c : S3AEncryptionMethods.values()) System.out.println(c);
public static S3AEncryptionMethods valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getMethod()
public boolean isServerSide()
public static S3AEncryptionMethods getMethod(String name) throws IOException
name
- algorithm nameIOException
- if the algorithm is unknownCopyright © 2008–2020 Apache Software Foundation. All rights reserved.