Enum Class GordianLength
- All Implemented Interfaces:
Serializable,Comparable<GordianLength>,Constable
Explicit lengths for digests.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintObtain the length (in bytes).intObtain the length (in bits).toString()static GordianLengthReturns the enum constant of this class with the specified name.static GordianLength[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEN_32
32 bits. -
LEN_64
64 bits. -
LEN_96
96 bits. -
LEN_128
128 bits. -
LEN_160
160 bits. -
LEN_192
192 bits. -
LEN_200
200 bits. -
LEN_224
224 bits. -
LEN_256
256 bits. -
LEN_320
320 bits. -
LEN_384
384 bits. -
LEN_512
512 bits. -
LEN_1024
1024 bits.
-
-
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
-
getLength
public int getLength()Obtain the length (in bits).- Returns:
- the length
-
getByteLength
public int getByteLength()Obtain the length (in bytes).- Returns:
- the length
-
toString
- Overrides:
toStringin classEnum<GordianLength>
-