|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectds.ov2.test.Misc_protocols_stubs
public class Misc_protocols_stubs
Stub code for running methods on the card. Defines one stub method for each protocol step in Misc_protocols.id. The stub methods are the top entry point into the OV-chip protocol layer for host driver code. Each stub method performs the following actions:
BigInteger
to
Bignat
)
Nested Class Summary | |
---|---|
static class |
Misc_protocols_stubs.Mem_size_result
Result record for step mem_size of protocol mem_size. |
static class |
Misc_protocols_stubs.Status_result
Result record for step status of protocol status. |
Field Summary | |
---|---|
private Host_protocol |
hp_mem_size
Host protocol instance for step mem_size of protocol mem_size. |
private Host_protocol |
hp_ping
Host protocol instance for step ping of protocol Ping. |
private Host_protocol |
hp_set_size
Host protocol instance for step set_size of protocol set_size. |
private Host_protocol |
hp_status
Host protocol instance for step status of protocol status. |
private PrintWriter |
out
The output channel for debugging information of the OV-chip protocol layer. |
private Misc_protocols_description |
protocol_description
A protocol description instance from Misc_protocols.id. |
private boolean |
with_apdu_script
Controls apdutool line printing. |
Constructor Summary | |
---|---|
Misc_protocols_stubs(Misc_protocols_description d,
PrintWriter o,
boolean script)
Stub constructor. |
Method Summary | |
---|---|
private void |
init_hp_mem_size(Misc_protocols_description d,
PrintWriter out,
boolean script)
Initialization method for hp_mem_size . |
private void |
init_hp_ping(Misc_protocols_description d,
PrintWriter out,
boolean script)
Initialization method for hp_ping . |
private void |
init_hp_set_size(Misc_protocols_description d,
PrintWriter out,
boolean script)
Initialization method for hp_set_size . |
private void |
init_hp_status(Misc_protocols_description d,
PrintWriter out,
boolean script)
Initialization method for hp_status . |
Misc_protocols_stubs.Mem_size_result |
mem_size_call(CardChannel _cc)
Call step mem_size of protocol mem_size on the card. |
long |
ping_call(CardChannel _cc)
Call step ping of protocol Ping on the card. |
void |
set_size_call(CardChannel _cc,
int _short_bignat_size_host_arg,
int _long_bignat_size_host_arg,
int _double_bignat_size_host_arg,
int _cipher_size_host_arg)
Call step set_size of protocol set_size on the card. |
Misc_protocols_stubs.Status_result |
status_call(CardChannel _cc)
Call step status of protocol status on the card. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Misc_protocols_description protocol_description
private PrintWriter out
private boolean with_apdu_script
private Host_protocol hp_ping
init_hp_ping
(which is called from the constructor).
private Host_protocol hp_set_size
init_hp_set_size
(which is called from the constructor).
private Host_protocol hp_mem_size
init_hp_mem_size
(which is called from the constructor).
private Host_protocol hp_status
init_hp_status
(which is called from the constructor).
Constructor Detail |
---|
public Misc_protocols_stubs(Misc_protocols_description d, PrintWriter o, boolean script)
d
- protocol description instance for Misc_protocols.ido
- channel for printing debugging information, pass null
for disabling debugging informationscript
- if true, print apdutool lines for all APDUs as part
of the debugging information.Method Detail |
---|
private void init_hp_ping(Misc_protocols_description d, PrintWriter out, boolean script)
hp_ping
.
d
- description instance for Misc_protocols.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic long ping_call(CardChannel _cc) throws CardException
_cc
- communication channel to the applet, must not be null
CardException
- in case of communication errorsprivate void init_hp_set_size(Misc_protocols_description d, PrintWriter out, boolean script)
hp_set_size
.
d
- description instance for Misc_protocols.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic void set_size_call(CardChannel _cc, int _short_bignat_size_host_arg, int _long_bignat_size_host_arg, int _double_bignat_size_host_arg, int _cipher_size_host_arg) throws CardException
_cc
- communication channel to the applet, must not be null_short_bignat_size_host_arg
- argument short_bignat_size to be converted to APDU_short_long_bignat_size_host_arg
- argument long_bignat_size to be converted to APDU_short_double_bignat_size_host_arg
- argument double_bignat_size to be converted to APDU_short_cipher_size_host_arg
- argument cipher_size to be converted to APDU_short
CardException
- in case of communication errorsprivate void init_hp_mem_size(Misc_protocols_description d, PrintWriter out, boolean script)
hp_mem_size
.
d
- description instance for Misc_protocols.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic Misc_protocols_stubs.Mem_size_result mem_size_call(CardChannel _cc) throws CardException
_cc
- communication channel to the applet, must not be null
CardException
- in case of communication errorsprivate void init_hp_status(Misc_protocols_description d, PrintWriter out, boolean script)
hp_status
.
d
- description instance for Misc_protocols.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic Misc_protocols_stubs.Status_result status_call(CardChannel _cc) throws CardException
_cc
- communication channel to the applet, must not be null
CardException
- in case of communication errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |