Package org.apache.hadoop.fs.s3a
Enum Class S3AEncryptionMethods
- All Implemented Interfaces:
Serializable,Comparable<S3AEncryptionMethods>,Constable
This enum is to centralize the encryption methods and
the value required in the configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic S3AEncryptionMethodsGet the encryption mechanism from the value provided.booleanFlag to indicate this is a server-side encryption option.booleanDoes this encryption algorithm require a secret?static S3AEncryptionMethodsReturns the enum constant of this class with the specified name.static S3AEncryptionMethods[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
SSE_S3
-
SSE_KMS
-
SSE_C
-
CSE_KMS
-
CSE_CUSTOM
-
DSSE_KMS
-
-
Field Details
-
UNKNOWN_ALGORITHM
Error string whengetMethod(String)fails. Used in tests.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getMethod
-
isServerSide
public boolean isServerSide()Flag to indicate this is a server-side encryption option.- Returns:
- true if this is server side.
-
requiresSecret
public boolean requiresSecret()Does this encryption algorithm require a secret?- Returns:
- true if a secret must be retrieved.
-
getMethod
Get the encryption mechanism from the value provided.- Parameters:
name- algorithm name- Returns:
- the method
- Throws:
IOException- if the algorithm is unknown
-