public abstract class Command
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
CLA |
protected int |
INS |
protected int |
LE |
protected int |
P1 |
protected int |
P2 |
protected byte[] |
responseData |
protected int |
SW |
protected int |
SW2 |
protected java.lang.String |
swDescription |
protected java.lang.String |
TAG |
Modifier | Constructor and Description |
---|---|
protected |
Command(int CLA,
int INS,
int P1,
int P2,
int LE,
java.lang.String childTag) |
protected |
Command(int CLA,
int INS,
int P1,
int P2,
java.lang.String childTag) |
protected |
Command(int INS,
int P1,
int P2,
java.lang.String childTag) |
protected |
Command(java.lang.String childTag) |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
buildData() |
static Command |
getInstance(CommandAPDU commandAPDU,
java.lang.String invoker)
Generic commands
|
byte[] |
getResponseData() |
protected abstract void |
ownCheckStatusResponse() |
void |
send(IsoDepCardHandler transmitter) |
protected java.lang.String TAG
protected int CLA
protected int INS
protected int P1
protected int P2
protected int LE
protected byte[] responseData
protected int SW
protected int SW2
protected java.lang.String swDescription
protected Command(java.lang.String childTag)
protected Command(int INS, int P1, int P2, java.lang.String childTag)
INS
- P1
- P2
- protected Command(int CLA, int INS, int P1, int P2, java.lang.String childTag)
CLA
- INS
- P1
- P2
- protected Command(int CLA, int INS, int P1, int P2, int LE, java.lang.String childTag)
CLA
- INS
- P1
- P2
- LE
- public static Command getInstance(CommandAPDU commandAPDU, java.lang.String invoker)
commandAPDU
- public void send(IsoDepCardHandler transmitter) throws java.io.IOException, SecureMessagingException
transmitter
- java.io.IOException
SecureMessagingException
public byte[] getResponseData()
protected abstract void ownCheckStatusResponse() throws java.io.IOException
java.io.IOException
protected abstract byte[] buildData() throws java.io.IOException
java.io.IOException