Package org.jeegen.jee6.util
Enum AbstractMessageDigest.DIGEST
- java.lang.Object
-
- java.lang.Enum<AbstractMessageDigest.DIGEST>
-
- org.jeegen.jee6.util.AbstractMessageDigest.DIGEST
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractMessageDigest.DIGEST>
- Enclosing class:
- AbstractMessageDigest
protected static enum AbstractMessageDigest.DIGEST extends Enum<AbstractMessageDigest.DIGEST>
This enumeration lists the supported message digests.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static AbstractMessageDigest.DIGEST
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractMessageDigest.DIGEST[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MD5
public static final AbstractMessageDigest.DIGEST MD5
The deprecated MD5 hashing algorithm.
-
SHA1
public static final AbstractMessageDigest.DIGEST SHA1
The deprecated MD5 hashing algorithm.
-
SHA256
public static final AbstractMessageDigest.DIGEST SHA256
The recommended SHA hashing algorithm.
-
SHA384
public static final AbstractMessageDigest.DIGEST SHA384
The more safe SHA hashing algorithm.
-
SHA512
public static final AbstractMessageDigest.DIGEST SHA512
The most safe SHA hashing algorithm.
-
-
Method Detail
-
values
public static AbstractMessageDigest.DIGEST[] 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 (AbstractMessageDigest.DIGEST c : AbstractMessageDigest.DIGEST.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractMessageDigest.DIGEST 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<AbstractMessageDigest.DIGEST>
-
-