Package com.helger.security.oscp
Enum EOCSPResponseStatus
- java.lang.Object
-
- java.lang.Enum<EOCSPResponseStatus>
-
- com.helger.security.oscp.EOCSPResponseStatus
-
- All Implemented Interfaces:
com.helger.commons.id.IHasIntID,com.helger.commons.state.ISuccessIndicator,Serializable,Comparable<EOCSPResponseStatus>
public enum EOCSPResponseStatus extends Enum<EOCSPResponseStatus> implements com.helger.commons.state.ISuccessIndicator, com.helger.commons.id.IHasIntID
OSCP response status as enum.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNAL_ERRORMALFORMED_REQUESTSIG_REQUIREDSUCCESSFULTRY_LATERUNAUTHORIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EOCSPResponseStatusgetFromValueOrNull(int nID)intgetID()booleanisSuccess()static EOCSPResponseStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static EOCSPResponseStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESSFUL
public static final EOCSPResponseStatus SUCCESSFUL
-
MALFORMED_REQUEST
public static final EOCSPResponseStatus MALFORMED_REQUEST
-
INTERNAL_ERROR
public static final EOCSPResponseStatus INTERNAL_ERROR
-
TRY_LATER
public static final EOCSPResponseStatus TRY_LATER
-
SIG_REQUIRED
public static final EOCSPResponseStatus SIG_REQUIRED
-
UNAUTHORIZED
public static final EOCSPResponseStatus UNAUTHORIZED
-
-
Method Detail
-
values
public static EOCSPResponseStatus[] 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 (EOCSPResponseStatus c : EOCSPResponseStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EOCSPResponseStatus 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
-
getID
public int getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasIntID
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccessin interfacecom.helger.commons.state.ISuccessIndicator
-
getFromValueOrNull
@Nullable public static EOCSPResponseStatus getFromValueOrNull(int nID)
-
-