public enum SAMResults extends java.lang.Enum<SAMResults>
Enum Constant and Description |
---|
ALREADY_IN_USE_BY_A_DIFFERENT_USER
SAM is already in use by a different application
|
ANOTHER_SAM_ALREADY_IN_USE
Another SAM is already in use, please disconnect from previous SAM before connecting to the new SAM.
|
FAILED_TO_CONNECT
Failed to connect to the SAM
|
FAILURE
Failure
|
INVALID_APDU_COMMAND
Invalid APDU Command
|
SAM_ALREADY_CONNECTED
Already connected to the SAM
|
SAM_NOT_CONNECTED
SAM not connected
|
SAM_NOT_INITIALIZED
SAM not initialized
|
SUCCESS
Success
|
TRANSCEIVE_FAILURE
Transceive Failure
|
UNDEFINED
Error code not defined.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getErrorDescription(SAMResults errorCode)
Returns the description for the error code specified.
|
int |
getVal() |
static SAMResults |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SAMResults[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SAMResults FAILURE
public static final SAMResults SUCCESS
public static final SAMResults FAILED_TO_CONNECT
public static final SAMResults SAM_NOT_INITIALIZED
public static final SAMResults TRANSCEIVE_FAILURE
public static final SAMResults INVALID_APDU_COMMAND
public static final SAMResults SAM_NOT_CONNECTED
public static final SAMResults ANOTHER_SAM_ALREADY_IN_USE
public static final SAMResults ALREADY_IN_USE_BY_A_DIFFERENT_USER
public static final SAMResults SAM_ALREADY_CONNECTED
public static final SAMResults UNDEFINED
public static SAMResults[] values()
for (SAMResults c : SAMResults.values()) System.out.println(c);
public static SAMResults valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getVal()
public static java.lang.String getErrorDescription(SAMResults errorCode)
errorCode
- SAMResults