- All Implemented Interfaces:
Algorithm
,Serializable
,Comparable<SunJCEAlgorithm>
,Constable
The enum
SunJCEAlgorithm
defines the algorithm specified by the SunJCE security provider.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Blowfish algorithm.The DES algorithm.The DESede algorithm.The PBEWithMD5AndDES algorithm.The enum constant 'UNKNOWN' if the SunJCE security provider algorithm is unknown -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from interface io.github.astrapi69.crypt.api.algorithm.Algorithm
UNKNOWN_ALGORITHM_NAME
-
Method Summary
Modifier and TypeMethodDescriptionGets the algorithm for encryption or decryptionstatic SunJCEAlgorithm
Returns the enum constant of this class with the specified name.static SunJCEAlgorithm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Blowfish
The Blowfish algorithm. -
DES
The DES algorithm. -
DESede
The DESede algorithm. -
PBEWithMD5AndDES
The PBEWithMD5AndDES algorithm. -
UNKNOWN
The enum constant 'UNKNOWN' if the SunJCE security provider algorithm is unknown
-
-
Field Details
-
BLOWFISH_ALGORITHM_NAME
- See Also:
-
DES_ALGORITHM_NAME
- See Also:
-
DES_EDE_ALGORITHM_NAME
- See Also:
-
PBEWithMD5AndDES_ALGORITHM_NAME
- 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
-
getAlgorithm
Gets the algorithm for encryption or decryption- Specified by:
getAlgorithm
in interfaceAlgorithm
- Returns:
- the algorithm
-