- java.lang.Object
-
- java.lang.Enum<Status>
-
- org.shredzone.acme4j.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<Status>
public enum Status extends Enum<Status>
An enumeration of status codes of challenges and authorizations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELED
An auto-renewingOrder
is canceled.DEACTIVATED
TheAccount
orAuthorization
has been deactivated by the client.EXPIRED
TheAuthorization
is expired.INVALID
An error or authorization/validation failure has occured.PENDING
The server has created the resource, and is waiting for the client to process it.PROCESSING
The server is processing the resource.READY
TheOrder
is ready to be finalized.REVOKED
TheAuthorization
has been revoked by the server.UNKNOWN
The server did not provide a status, or the provided status is not a specified ACME status.VALID
The resource is valid and can be used as intended.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Status
parse(String str)
Parses the string and returns a corresponding Status object.static Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PENDING
public static final Status PENDING
The server has created the resource, and is waiting for the client to process it.
-
READY
public static final Status READY
TheOrder
is ready to be finalized. InvokeOrder.execute(byte[])
.
-
PROCESSING
public static final Status PROCESSING
The server is processing the resource. The client should invokeAcmeJsonResource.update()
and re-check the status.
-
INVALID
public static final Status INVALID
An error or authorization/validation failure has occured. The client should check for error messages.
-
REVOKED
public static final Status REVOKED
TheAuthorization
has been revoked by the server.
-
DEACTIVATED
public static final Status DEACTIVATED
TheAccount
orAuthorization
has been deactivated by the client.
-
EXPIRED
public static final Status EXPIRED
TheAuthorization
is expired.
-
-
Method Detail
-
values
public static Status[] 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 (Status c : Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Status 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
-
-