|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavacard.framework.Applet
ds.ov2.util.Protocol_applet
public class Protocol_applet
General functionality for the main applet instance for applets
using the OV-Chip protocol layer. In the applet specific code there
must be one class extending this class and overriding the install
method. In addition to the usual tasks (creation
of one instance and calling register
at the end)
this install method must do the following things (in conjunction
with the constructor of the extending class):
Protocol
[]
). Registered_protocols
, initialize the registered protocols there
(via Registered_protocols.set_protocols
) Registered_protocols
in the main applet instance (i.e., the
only instance of the class that extends this class). This can be
done with with set_registered_protocols
. Applet
and can be compiled directly into
the host driver without too much hassle.
Field Summary | |
---|---|
private Card_protocol |
card_protocol
Card protocol instance. |
private Registered_protocols |
registered_protocols
Registered protocols instance. |
Constructor Summary | |
---|---|
protected |
Protocol_applet()
Constructor. |
Method Summary | |
---|---|
void |
process(APDU apdu)
Process an incoming APDU. |
boolean |
select()
Applet selection. |
void |
set_registered_protocols(Registered_protocols registered_protocols)
Initialize the registered_protocols field. |
Methods inherited from class javacard.framework.Applet |
---|
deselect, getShareableInterfaceObject, install, register, register, selectingApplet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Card_protocol card_protocol
card_protocol.
protocol
!= null and Card_protocol.protocol_running()
returns true.
private Registered_protocols registered_protocols
set_registered_protocols
. This must
happen at initialization time before the applet is selected the
first time.
Constructor Detail |
---|
protected Protocol_applet()
card_protocol
.
Method Detail |
---|
public void set_registered_protocols(Registered_protocols registered_protocols)
registered_protocols
field.
This must happen at initialization time before the
applet is selected the first time.
registered_protocols
- Registered_protocols instancepublic boolean select()
select
in class Applet
public void process(APDU apdu)
Card_protocol.process
for processing.
process
in class Applet
apdu
- application protocol data unit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |