Enum AcmeResource
- java.lang.Object
-
- java.lang.Enum<AcmeResource>
-
- org.wildfly.security.x500.cert.acme.AcmeResource
-
- All Implemented Interfaces:
Serializable
,Comparable<AcmeResource>
public enum AcmeResource extends Enum<AcmeResource>
The various Automatic Certificate Management Environment (ACME) protocol resource types.- Since:
- 1.5.0
- Author:
- Farah Juma
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEY_CHANGE
NEW_ACCOUNT
NEW_AUTHZ
NEW_NONCE
NEW_ORDER
REVOKE_CERT
-
Constructor Summary
Constructors Modifier Constructor Description private
AcmeResource(String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Get the string value of this resource type.static AcmeResource
valueOf(String name)
Returns the enum constant of this type with the specified name.static AcmeResource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW_NONCE
public static final AcmeResource NEW_NONCE
-
NEW_ACCOUNT
public static final AcmeResource NEW_ACCOUNT
-
NEW_ORDER
public static final AcmeResource NEW_ORDER
-
NEW_AUTHZ
public static final AcmeResource NEW_AUTHZ
-
REVOKE_CERT
public static final AcmeResource REVOKE_CERT
-
KEY_CHANGE
public static final AcmeResource KEY_CHANGE
-
-
Field Detail
-
name
private final String name
-
-
Constructor Detail
-
AcmeResource
private AcmeResource(String name)
-
-
Method Detail
-
values
public static AcmeResource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AcmeResource c : AcmeResource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AcmeResource valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
Get the string value of this resource type.- Returns:
- the string value of this resource type
-
-