Package org.xipki.ocsp.server
Enum OcspResponseStatus
- java.lang.Object
-
- java.lang.Enum<OcspResponseStatus>
-
- org.xipki.ocsp.server.OcspResponseStatus
-
- All Implemented Interfaces:
Serializable,Comparable<OcspResponseStatus>
public enum OcspResponseStatus extends Enum<OcspResponseStatus>
OCSP response status.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description internalErrormalformedRequestsigRequiredsuccessfultryLaterunauthorized
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OcspResponseStatusforValue(int status)intgetStatus()static OcspResponseStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static OcspResponseStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
successful
public static final OcspResponseStatus successful
-
malformedRequest
public static final OcspResponseStatus malformedRequest
-
internalError
public static final OcspResponseStatus internalError
-
tryLater
public static final OcspResponseStatus tryLater
-
sigRequired
public static final OcspResponseStatus sigRequired
-
unauthorized
public static final OcspResponseStatus unauthorized
-
-
Method Detail
-
values
public static OcspResponseStatus[] 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 (OcspResponseStatus c : OcspResponseStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OcspResponseStatus 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
-
getStatus
public int getStatus()
-
forValue
public static OcspResponseStatus forValue(int status)
-
-