public enum KeyLength extends Enum<KeyLength>
Enum Constant and Description |
---|
LENGTH_2048
2048 bit key.
|
LENGTH_3072
3072 bit key.
|
LENGTH_4096
4096 bit key.
|
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
static KeyLength |
getTypeByString(int length)
Convert an integer value to its enum value.
|
static KeyLength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyLength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyLength LENGTH_2048
public static final KeyLength LENGTH_3072
public static final KeyLength LENGTH_4096
public static KeyLength[] values()
for (KeyLength c : KeyLength.values()) System.out.println(c);
public static KeyLength valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getLength()
public static KeyLength getTypeByString(int length)
length
- the integer value to convert to enum value