public enum CertificatesOptions extends java.lang.Enum<CertificatesOptions> implements EnumCreator<CertificatesOptions>
Enum Constant and Description |
---|
CA
Defines the CA certificate option.
|
PEER
Defines the PEER certificate option
|
Modifier and Type | Field and Description |
---|---|
private static AccountsConstants |
CONSTANTS
The instance of accounts constants provider
|
private static java.util.Map<java.lang.String,java.lang.String> |
MAP
The certificate options and their presentation values
|
Modifier and Type | Method and Description |
---|---|
CertificatesOptions |
createFrom(java.lang.String name)
Create this enumeration by its name.
|
CertificatesOptions[] |
getValues()
Lists all its values.
|
java.lang.String |
toString()
Returns its presentation value.
|
static CertificatesOptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CertificatesOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CertificatesOptions CA
public static final CertificatesOptions PEER
private static final AccountsConstants CONSTANTS
private static final java.util.Map<java.lang.String,java.lang.String> MAP
public static CertificatesOptions[] values()
for (CertificatesOptions c : CertificatesOptions.values()) System.out.println(c);
public static CertificatesOptions valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic CertificatesOptions[] getValues()
getValues
in interface EnumCreator<CertificatesOptions>
public CertificatesOptions createFrom(java.lang.String name)
createFrom
in interface EnumCreator<CertificatesOptions>
name
- The certificate option namepublic java.lang.String toString()
toString
in class java.lang.Enum<CertificatesOptions>