public enum MifareSamResults extends Enum<MifareSamResults>
Enum Constant and Description |
---|
ALREADY_CONNECTED
The SAM is already connected.
|
AUTH_COND_NOT_SATISFIED
SAM in AV1 mode: Key entry cannot be used for authentication, MIFARE SAM
AV2 needs to be unlocked with key entry 00h first or KUC limit reached.
|
EMDK_NOT_OPENED
The EMDK is not opened.
|
FAILURE
Failure
|
INVALID_HOST_KEY
The key specified is not a host key
|
INVALID_KEY
The key type or length is invalid.
|
INVALID_KEY_ENTRY_OR_KUC
Referenced data is invalid for key entry or KUC (Key Usage Counters).
|
INVALID_VALUE
Invalid input parameter
|
KEY_VER_NOT_FOUND
The key version is not found.
|
MEMORY_FAILURE
Memory failure (KUC could not be updated).
|
NFC_DISABLED
NFC is disabled in settings, try enabling the NFC.
|
NOT_CONNECTED
The SAM is not connected.
|
PARAM_NOT_SUPPORTED
The parameter not supported.
|
SAM_KEY_DISABLED
The specified SAM key is disabled.
|
SAM_NOT_AVAILABLE
SAM not present in the device.
|
SAM_NOT_IN_AV1_MODE
The SAM is not in the AV1 mode.
|
SAM_NOT_IN_AV2_MODE
The SAM is not in the AV2 mode.
|
SUCCESS
Success
|
UNDEFINED
Error code not defined.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description for the error.
|
int |
getValue()
This method provides integer value assigned to the enum.
|
static MifareSamResults |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MifareSamResults[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MifareSamResults SUCCESS
public static final MifareSamResults EMDK_NOT_OPENED
public static final MifareSamResults NFC_DISABLED
public static final MifareSamResults SAM_NOT_AVAILABLE
public static final MifareSamResults FAILURE
public static final MifareSamResults ALREADY_CONNECTED
public static final MifareSamResults INVALID_VALUE
public static final MifareSamResults INVALID_KEY
public static final MifareSamResults PARAM_NOT_SUPPORTED
public static final MifareSamResults NOT_CONNECTED
public static final MifareSamResults SAM_NOT_IN_AV1_MODE
public static final MifareSamResults SAM_NOT_IN_AV2_MODE
public static final MifareSamResults SAM_KEY_DISABLED
public static final MifareSamResults INVALID_HOST_KEY
public static final MifareSamResults MEMORY_FAILURE
public static final MifareSamResults KEY_VER_NOT_FOUND
public static final MifareSamResults INVALID_KEY_ENTRY_OR_KUC
public static final MifareSamResults AUTH_COND_NOT_SATISFIED
public static final MifareSamResults UNDEFINED
public static MifareSamResults[] values()
for (MifareSamResults c : MifareSamResults.values()) System.out.println(c);
public static MifareSamResults valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public String getDescription()