|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectds.ov2.test.Misc_protocols_test_stubs
public class Misc_protocols_test_stubs
Stub code for running methods in the
testframe on the host.
Defines one stub method for each protocol step in Misc_protocols.id.
This class is the test-frame alternative to
Misc_protocols_stubs
. It provides the same
public interface, but instead of communicating with
a Java Card and invoking methods there, it directly
invokes the methods on the very same Java Virtual
machine. This is of course only possible, if (almost)
all of the applet code is available on the host.
All CardChannel
arguments in this class are unused.
Each stub method here performs the following actions:
BigInteger
to
Bignat
)
Nested Class Summary | |
---|---|
static class |
Misc_protocols_test_stubs.Mem_size_result
Result record for step mem_size of protocol mem_size. |
static class |
Misc_protocols_test_stubs.Status_result
Result record for step status of protocol status. |
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
Misc_protocols_test_stubs(Misc_protocols_description d,
PrintWriter o,
boolean script)
Stub constructor. |
Method Summary | |
---|---|
Misc_protocols_test_stubs.Mem_size_result |
mem_size_call(CardChannel _cc)
Call step mem_size of protocol mem_size in the test environment. |
long |
ping_call(CardChannel _cc)
Call step ping of protocol Ping in the test environment. |
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 in the test environment. |
Misc_protocols_test_stubs.Status_result |
status_call(CardChannel _cc)
Call step status of protocol status in the test environment. |
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
Constructor Detail |
---|
public Misc_protocols_test_stubs(Misc_protocols_description d, PrintWriter o, boolean script)
Host_protocol
data
structures to initialize. Therefore this constructor only
saves the first two arguments into object local fields.
The argument script
is only there for compatibility
with Misc_protocols_stubs
, it is ignored here.
d
- protocol description instance for Misc_protocols.ido
- channel for printing debugging information, pass null
for disabling debugging informationscript
- ignored here, controls printing of apdutool lines
in Misc_protocols_stubs
Method Detail |
---|
public long ping_call(CardChannel _cc)
_cc
- ignored here, can be null, card channel in Misc_protocols_stubs
public 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)
_cc
- ignored here, can be null, card channel in Misc_protocols_stubs
_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_shortpublic Misc_protocols_test_stubs.Mem_size_result mem_size_call(CardChannel _cc)
_cc
- ignored here, can be null, card channel in Misc_protocols_stubs
public Misc_protocols_test_stubs.Status_result status_call(CardChannel _cc)
_cc
- ignored here, can be null, card channel in Misc_protocols_stubs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |