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