Enum ProvidedHashFormat
- java.lang.Object
-
- java.lang.Enum<ProvidedHashFormat>
-
- org.apache.shiro.crypto.hash.format.ProvidedHashFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<ProvidedHashFormat>
public enum ProvidedHashFormat extends Enum<ProvidedHashFormat>
An enum representing Shiro's default providedHashFormat
implementations.- Since:
- 1.2
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASE64
Value representing theBase64Format
implementation.HEX
Value representing theHexFormat
implementation.SHIRO1
Value representing theShiro1CryptFormat
implementation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProvidedHashFormat
byId(String id)
static ProvidedHashFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProvidedHashFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEX
public static final ProvidedHashFormat HEX
Value representing theHexFormat
implementation.
-
BASE64
public static final ProvidedHashFormat BASE64
Value representing theBase64Format
implementation.
-
SHIRO1
public static final ProvidedHashFormat SHIRO1
Value representing theShiro1CryptFormat
implementation.
-
-
Method Detail
-
values
public static ProvidedHashFormat[] 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 (ProvidedHashFormat c : ProvidedHashFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProvidedHashFormat 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
-
byId
public static ProvidedHashFormat byId(String id)
-
-