|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.jc.JCApplet
This class implements the off-card behavior of an applet on a JavaCard.
OPApplet| Field Summary | |
protected byte[] |
apdu
APDU buffer (size 300 bytes) (5 bytes header, 255 bytes max body, 1 byte LE, 39 bytes for misc stuff (MAC, encryption padding) |
| Constructor Summary | |
JCApplet()
|
|
JCApplet(JCApplet app)
Create the off-card representation of a JavaCard applet. |
|
JCApplet(JCard card,
byte[] aid)
Create the off-card representation of a JavaCard applet. |
|
JCApplet(JCard card,
byte[] aid,
int aidBeg,
int aidLen)
Create the off-card representation of a JavaCard applet. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
|
void |
flush()
Flush off-card cache of on-card mutable properties. |
byte[] |
getAID()
|
JCard |
getCard()
|
JCTerminal |
getTerminal()
Deprecated. use getCard().getTerminal() |
byte[] |
select()
Select applet via the current logial channel. |
byte[] |
setAID(byte[] aid)
Sets the AID of the applet. |
void |
setCard(JCard c)
sets the Card the applet resides on |
protected void |
setHeader(int cla,
int ins,
int p1,
int p2)
Set APDU header with given values. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte[] apdu
| Constructor Detail |
public JCApplet(JCard card,
byte[] aid,
int aidBeg,
int aidLen)
card - the JavaCard on which this applet livesaid - the buffer containing the AID of the appletaidBeg - start offset for AIDaidLen - the length of the applet. This value must be
in the range [5;16].
JCException - if AID is too short/long or if 'card'
is null.
public JCApplet(JCard card,
byte[] aid)
card - the JavaCard on which this applet livesaid - the buffer containing the AID of the applet
starting at offset zero with the length of aid.length.
JCException - if AID is too short or too long.public JCApplet(JCApplet app)
JCException - if AID is too short or too long.public JCApplet()
| Method Detail |
public boolean equals(java.lang.Object o)
public JCTerminal getTerminal()
public JCard getCard()
public void setCard(JCard c)
public byte[] getAID()
public byte[] setAID(byte[] aid)
aid - byte array holding the new AID (data is not copied).
protected void setHeader(int cla,
int ins,
int p1,
int p2)
public void flush()
public byte[] select()
if - status of R-APDU is neither JCStatus.NOERROR (9000) nor JCStatus.APPLET_INVALIDATED (6283).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||