Package overit.geocall.util
Enum Class DigestAlgorithm
- All Implemented Interfaces:
Serializable,Comparable<DigestAlgorithm>,Constable
Enum about all possible digest algorithms.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFormats OB64 to support old wrong format base64 encoding the hex format of the digest not to be used anymore. -
Method Summary
Modifier and TypeMethodDescriptionstatic DigestAlgorithmfromString(@NotNull String value) Returns theDigestAlgorithmcorresponding to the provided value.Returns aStringabout the algorithm.Returns aStringabout the out format.static DigestAlgorithmReturns the enum constant of this class with the specified name.static DigestAlgorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEX_MD5
-
HEX_SHA1
-
HEX_SHA256
-
HEX_SHA512
-
B64_MD5
-
B64_SHA1
-
B64_SHA256
-
B64_SHA512
-
OB64_MD5
Formats OB64 to support old wrong format base64 encoding the hex format of the digest not to be used anymore. -
OB64_SHA1
-
OB64_SHA256
-
OB64_SHA512
-
-
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
Returns aStringabout the algorithm.- Returns:
- a
Stringabout the algorithm.
-
getOutFormat
Returns aStringabout the out format.- Returns:
- a
Stringabout the out format.
-
fromString
public static DigestAlgorithm fromString(@NotNull @NotNull String value) throws IllegalArgumentException Returns the
In case noDigestAlgorithmcorresponding to the provided value.DigestAlgorithmcorresponding to the provided value is found, anIllegalArgumentExceptionis thrown.- Parameters:
value-Stringabout the device value.- Returns:
- the
DigestAlgorithmcorresponding to the provided value. - Throws:
IllegalArgumentException- thrown in case of unexpected value.
-