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 ConstantsEnum ConstantDescription1024 bits.128 bits.1536 bits.160 bits.192 bits.200 bits.2048 bits.224 bits.256 bits.283 bits.306 bits.3072 bits.32 bits.320 bits.366 bits.384 bits.409 bits.4096 bits.431 bits.512 bits.521 bits.571 bits.6144 bits.64 bits.8192 bits.96 bits. -
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_283
283 bits. -
LEN_306
306 bits. -
LEN_320
320 bits. -
LEN_366
366 bits. -
LEN_384
384 bits. -
LEN_409
409 bits. -
LEN_431
431 bits. -
LEN_512
512 bits. -
LEN_521
521 bits. -
LEN_571
571 bits. -
LEN_1024
1024 bits. -
LEN_1536
1536 bits. -
LEN_2048
2048 bits. -
LEN_3072
3072 bits. -
LEN_4096
4096 bits. -
LEN_6144
6144 bits. -
LEN_8192
8192 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>
-