Package ch.swisscom.mid.client.model
Enum StatusCode
- java.lang.Object
-
- java.lang.Enum<StatusCode>
-
- ch.swisscom.mid.client.model.StatusCode
-
- All Implemented Interfaces:
DocumentedEnum,Serializable,Comparable<StatusCode>
public enum StatusCode extends Enum<StatusCode> implements DocumentedEnum
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatusCodegetByStatusCodeString(String statusCode)static StatusCodegetByStatusCodeValue(int value)intgetCode()StringgetDescription()booleanisFault()static StatusCodevalueOf(String name)Returns the enum constant of this type with the specified name.static StatusCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUEST_OK
public static final StatusCode REQUEST_OK
-
WRONG_PARAM
public static final StatusCode WRONG_PARAM
-
MISSING_PARAM
public static final StatusCode MISSING_PARAM
-
WRONG_DATA_LENGTH
public static final StatusCode WRONG_DATA_LENGTH
-
UNAUTHORIZED_ACCESS
public static final StatusCode UNAUTHORIZED_ACCESS
-
UNKNOWN_CLIENT
public static final StatusCode UNKNOWN_CLIENT
-
INAPPROPRIATE_DATA
public static final StatusCode INAPPROPRIATE_DATA
-
INCOMPATIBLE_INTERFACE
public static final StatusCode INCOMPATIBLE_INTERFACE
-
UNSUPPORTED_PROFILE
public static final StatusCode UNSUPPORTED_PROFILE
-
EXPIRED_TRANSACTION
public static final StatusCode EXPIRED_TRANSACTION
-
OTA_ERROR
public static final StatusCode OTA_ERROR
-
USER_CANCEL
public static final StatusCode USER_CANCEL
-
PIN_NR_BLOCKED
public static final StatusCode PIN_NR_BLOCKED
-
CARD_BLOCKED
public static final StatusCode CARD_BLOCKED
-
NO_KEY_FOUND
public static final StatusCode NO_KEY_FOUND
-
PB_SIGNATURE_PROCESS
public static final StatusCode PB_SIGNATURE_PROCESS
-
NO_CERT_FOUND
public static final StatusCode NO_CERT_FOUND
-
SIGNATURE
public static final StatusCode SIGNATURE
-
REVOKED_CERTIFICATE
public static final StatusCode REVOKED_CERTIFICATE
-
VALID_SIGNATURE
public static final StatusCode VALID_SIGNATURE
-
INVALID_SIGNATURE
public static final StatusCode INVALID_SIGNATURE
-
OUTSTANDING_TRANSACTION
public static final StatusCode OUTSTANDING_TRANSACTION
-
CONNECTION_REFUSED
public static final StatusCode CONNECTION_REFUSED
-
INTERNAL_ERROR
public static final StatusCode INTERNAL_ERROR
-
-
Method Detail
-
values
public static StatusCode[] 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 (StatusCode c : StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatusCode 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
-
getCode
public int getCode()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceDocumentedEnum
-
isFault
public boolean isFault()
-
getByStatusCodeString
public static StatusCode getByStatusCodeString(String statusCode)
-
getByStatusCodeValue
public static StatusCode getByStatusCodeValue(int value)
-
-