public enum ApduCase extends Enum<ApduCase>
APDU.| Enum Constant and Description |
|---|
Case1
Case 1 APDU (CLA, INS, P1, P2)
|
Case2
Case 2 APDU (CLA, INS, P1, P2, 1 byte Le)
|
Case2Extended
Case 2 extended APDU (CLA, INS, P1, P2, 0, 2 byte Le)
|
Case3
Case 3 APDU (CLA, INS, P1, P2, 1 byte Lc, Data)
|
Case3Extended
Case 3 extended APDU (CLA, INS, P1, P2, 2 byte Lc, Data)
|
Case4
Case 4 APDU (CLA, INS, P1, P2, 1 byte Lc, Data, 1 byte Le)
|
Case4Extended
Case 4 extended APDU (CLA, INS, P1, P2, 0, 2 byte Lc, Data, 2 byte Le)
|
| Modifier and Type | Method and Description |
|---|---|
static ApduCase |
getCase(byte[] command)
Determine case of APDU
|
boolean |
isExtended() |
static ApduCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApduCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApduCase Case1
public static final ApduCase Case2
public static final ApduCase Case2Extended
public static final ApduCase Case3
public static final ApduCase Case3Extended
public static final ApduCase Case4
public static final ApduCase Case4Extended
public static ApduCase[] values()
for (ApduCase c : ApduCase.values()) System.out.println(c);
public static ApduCase 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 boolean isExtended()
true for extended APDUpublic static ApduCase getCase(byte[] command)
command - command APDU byte buffercommandIllegalArgumentException - if command is malformedNullPointerException - if command is null