Package de.xima.fc.mdl.enums
Enum EHashAlgorithm
- java.lang.Object
-
- java.lang.Enum<EHashAlgorithm>
-
- de.xima.fc.mdl.enums.EHashAlgorithm
-
- All Implemented Interfaces:
Serializable
,Comparable<EHashAlgorithm>
public enum EHashAlgorithm extends Enum<EHashAlgorithm>
Enum representing hash algorithms.- Since:
- 8.0.0
- Author:
- XIMA MEDAI GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SHA512_HEX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
digest(String value)
static EHashAlgorithm
getById(int id)
static EHashAlgorithm
getDefaultForUserProfiles()
int
getId()
static EHashAlgorithm
valueOf(String name)
Returns the enum constant of this type with the specified name.static EHashAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHA512_HEX
public static final EHashAlgorithm SHA512_HEX
-
-
Method Detail
-
values
public static EHashAlgorithm[] 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 (EHashAlgorithm c : EHashAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EHashAlgorithm valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getById
public static EHashAlgorithm getById(int id)
-
getDefaultForUserProfiles
public static EHashAlgorithm getDefaultForUserProfiles()
-
getId
public int getId()
-
-