Package co.ankatech.ankasecure.sdk.model
Enum Class SignEncryptFlavor
- All Implemented Interfaces:
Serializable,Comparable<SignEncryptFlavor>,Constable
The advisory key-flavor hint a streaming sign-then-encrypt request may carry
(
SignEncryptStreamOptions.flavor()). The server derives the effective flavor from the keys;
the hint does not change which keys are used.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn asymmetric (single-algorithm) key pair.A composite (hybrid) key.A symmetric encryption key. -
Method Summary
Modifier and TypeMethodDescriptionstatic SignEncryptFlavorReturns the enum constant of this class with the specified name.static SignEncryptFlavor[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SYMMETRIC
A symmetric encryption key. -
ASYMMETRIC
An asymmetric (single-algorithm) key pair. -
COMPOSITE
A composite (hybrid) key.
-
-
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
-