Package me.saro.commons.converter
Enum HashAlgorithm
- java.lang.Object
-
- java.lang.Enum<HashAlgorithm>
-
- me.saro.commons.converter.HashAlgorithm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HashAlgorithm>,java.lang.constant.Constable
public enum HashAlgorithm extends java.lang.Enum<HashAlgorithm>
Converter Hash Algorithm- Since:
- 0.2
- Author:
- PARK Yong Seo
-
-
Method Summary
Modifier and Type Method Description java.lang.Stringvalue()get valuestatic HashAlgorithmvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HashAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MD5
public static final HashAlgorithm MD5
MD5 : not recommend
-
SHA1
public static final HashAlgorithm SHA1
-
SHA_224
public static final HashAlgorithm SHA_224
-
SHA_256
public static final HashAlgorithm SHA_256
-
SHA_384
public static final HashAlgorithm SHA_384
-
SHA_512_224
public static final HashAlgorithm SHA_512_224
-
SHA_512_256
public static final HashAlgorithm SHA_512_256
-
SHA3_224
public static final HashAlgorithm SHA3_224
-
SHA3_256
public static final HashAlgorithm SHA3_256
-
SHA3_384
public static final HashAlgorithm SHA3_384
-
SHA3_512
public static final HashAlgorithm SHA3_512
-
-
Method Detail
-
values
public static HashAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HashAlgorithm 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
-
value
public java.lang.String value()
get value- Returns:
-
-