Package com.jgcomptech.tools
Enum SecurityTools.HashType
- java.lang.Object
-
- java.lang.Enum<SecurityTools.HashType>
-
- com.jgcomptech.tools.SecurityTools.HashType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SecurityTools.HashType>
- Enclosing class:
- SecurityTools
public static enum SecurityTools.HashType extends java.lang.Enum<SecurityTools.HashType>
A list of the Hash Types to be used for hashing string values in theSecurityTools
class.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecurityTools.HashType
valueOf​(java.lang.String name)
Returns the enum constant of this type with the specified name.static SecurityTools.HashType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MD2
public static final SecurityTools.HashType MD2
MD2.
-
MD5
public static final SecurityTools.HashType MD5
MD5.
-
SHA1
public static final SecurityTools.HashType SHA1
SHA-1.
-
SHA256
public static final SecurityTools.HashType SHA256
SHA-256.
-
SHA384
public static final SecurityTools.HashType SHA384
SHA-384.
-
SHA512
public static final SecurityTools.HashType SHA512
SHA-512.
-
-
Method Detail
-
values
public static SecurityTools.HashType[] 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 (SecurityTools.HashType c : SecurityTools.HashType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SecurityTools.HashType 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
-
-