Module seppiko.commons.utils
Package org.seppiko.commons.utils.crypto
Enum Class MessageDigestAlgorithms
- All Implemented Interfaces:
Serializable,Comparable<MessageDigestAlgorithms>,Constable
Standard
MessageDigest algorithm names from the Java Cryptography
Architecture Standard Algorithm Name Documentation.- Author:
- Leonard Woo
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe MD2 message digest algorithm defined in RFC 1319.The MD5 message digest algorithm defined in RFC 1321.The SHA-1 hash algorithm defined in the FIPS PUB 180-2.The SHA-224 hash algorithm defined in the FIPS PUB 180-3.The SHA-256 hash algorithm defined in the FIPS PUB 180-2.The SHA-384 hash algorithm defined in the FIPS PUB 180-2.The SHA-512 hash algorithm defined in the FIPS PUB 180-2.The SHA-512 hash algorithm defined in the FIPS PUB 180-4.The SHA-512 hash algorithm defined in the FIPS PUB 180-4.The SHA3-224 hash algorithm defined in the FIPS PUB 202.The SHA3-256 hash algorithm defined in the FIPS PUB 202.The SHA3-384 hash algorithm defined in the FIPS PUB 202.The SHA3-512 hash algorithm defined in the FIPS PUB 202. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets this algorithm name.static MessageDigestAlgorithmsReturns the enum constant of this class with the specified name.static MessageDigestAlgorithms[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MD2
The MD2 message digest algorithm defined in RFC 1319. -
MD5
The MD5 message digest algorithm defined in RFC 1321. -
SHA_1
The SHA-1 hash algorithm defined in the FIPS PUB 180-2. -
SHA_224
The SHA-224 hash algorithm defined in the FIPS PUB 180-3. -
SHA_256
The SHA-256 hash algorithm defined in the FIPS PUB 180-2. -
SHA_384
The SHA-384 hash algorithm defined in the FIPS PUB 180-2. -
SHA_512
The SHA-512 hash algorithm defined in the FIPS PUB 180-2. -
SHA_512_224
The SHA-512 hash algorithm defined in the FIPS PUB 180-4. -
SHA_512_256
The SHA-512 hash algorithm defined in the FIPS PUB 180-4. -
SHA3_224
The SHA3-224 hash algorithm defined in the FIPS PUB 202. -
SHA3_256
The SHA3-256 hash algorithm defined in the FIPS PUB 202. -
SHA3_384
The SHA3-384 hash algorithm defined in the FIPS PUB 202. -
SHA3_512
The SHA3-512 hash algorithm defined in the FIPS PUB 202.
-
-
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
-
getName
Gets this algorithm name.- Returns:
- this algorithm name
-