public enum KeyCompressionType extends Enum<KeyCompressionType>
| Enum Constant and Description |
|---|
EC_Public_Key_Type_Uncompressed |
EC_Public_Key_Type_X9_62_Compressed_Char2 |
EC_Public_Key_Type_X9_62_Compressed_Prime |
EC_Public_Key_Type_X9_62_Hybrid |
| Modifier and Type | Method and Description |
|---|---|
static KeyCompressionType |
from(int code) |
static KeyCompressionType |
from(String name) |
int |
getCode() |
String |
toString() |
static KeyCompressionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyCompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyCompressionType EC_Public_Key_Type_Uncompressed
public static final KeyCompressionType EC_Public_Key_Type_X9_62_Compressed_Prime
public static final KeyCompressionType EC_Public_Key_Type_X9_62_Compressed_Char2
public static final KeyCompressionType EC_Public_Key_Type_X9_62_Hybrid
public static KeyCompressionType[] values()
for (KeyCompressionType c : KeyCompressionType.values()) System.out.println(c);
public static KeyCompressionType 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 getCode()
public String toString()
toString in class Enum<KeyCompressionType>public static KeyCompressionType from(String name) throws IllegalArgumentException
IllegalArgumentExceptionpublic static KeyCompressionType from(int code) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2022. All rights reserved.