Enum Class PBEMechanism
- All Implemented Interfaces:
Mechanism
,Serializable
,Comparable<PBEMechanism>
,Constable
The enum
PBEMechanism
defines some of the password-based encryption (PBE).-
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
FieldsModifier and TypeFieldDescriptionstatic final String
Constant for PBE mechanism name.static final String
Constant for PKCS mechanism name.Fields inherited from interface io.github.astrapi69.crypt.api.mechanism.Mechanism
UNKNOWN_MECHANISM_NAME
-
Method Summary
Modifier and TypeMethodDescriptionGets the mechanismstatic PBEMechanism
Returns the enum constant of this class with the specified name.static PBEMechanism[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PBE
The PBE mechanism. -
PKCS
The PKCS mechanism. -
UNKNOWN
The enum constant 'UNKNOWN' if the PBE mechanism name is unknown.
-
-
Field Details
-
PBE_MECHANISM_NAME
Constant for PBE mechanism name.- See Also:
-
PKCS_MECHANISM_NAME
Constant for PKCS mechanism 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
-
getMechanism
Gets the mechanism- Specified by:
getMechanism
in interfaceMechanism
- Returns:
- the mechanism
-