- java.lang.Object
-
- java.lang.Enum<PBEMechanism>
-
- io.github.astrapi69.crypt.api.mechanism.PBEMechanism
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PBEMechanism>
public enum PBEMechanism extends java.lang.Enum<PBEMechanism>
The enumPBEMechanism
defines some of the password-based encryption (PBE).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PBE_MECHANISM_NAME
static java.lang.String
PKCS_MECHANISM_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PBEMechanism
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PBEMechanism[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PBE
public static final PBEMechanism PBE
The pbe mechanism.
-
PKCS
public static final PBEMechanism PKCS
The pkcs mechanism.
-
-
Field Detail
-
PBE_MECHANISM_NAME
public static final java.lang.String PBE_MECHANISM_NAME
- See Also:
- Constant Field Values
-
PKCS_MECHANISM_NAME
public static final java.lang.String PKCS_MECHANISM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PBEMechanism[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PBEMechanism c : PBEMechanism.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PBEMechanism valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-