|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectds.ov2.front.Card_testframe
public class Card_testframe
Main class of the front office testframe. This test frame can install and personalize all variants of the RSA applet, namely the plain RSA applet, the Montgomerizing RSA applet, the squaring and the square 4 RSA applet. It installs both, on Java Card or the jcop emulator. Further it tests the resign and the proof protocols and measures their performance for different key sizes.
This test frame is a non-interactive terminal program whose behavior can be controlled by command line options. One can select between two kinds of modes:
Test_state.ptls_param_rounds
many
PTLS key generation rounds are performed (controlled by option
-ptls-rounds
).
Test_state.card_init_rounds
many card initialization rounds
(controlled by option -card-init-rounds
).
-attr
) and
personalizes the applet (which includes running the resign protocol
once to provide the card with a blinding and a valid signature).
The test frame then performs Test_state.resign_rounds
many
resign rounds (controlled by option -resign-rounds
)
Test_state.proof_rounds
many proof rounds (controlled by the
option -proof-rounds
).
This test frame accepts the following options for customization.
The test frame can connect to the SUN emulators cref and jcwde too. This would even be an option for the Montgomerizing RSA applet. However, the builtin applet installation does not work with these emulators ...
Normally the host driver checks all signatures from the card and
the acceptance condition during the proof protocol. If any of these
checks fails the test frame terminates immediately. With the option
This class contains the special parts for the card test frame. Many
parts that are shared with the host test frames (
Static class.
-ignore
the test frame continues when these checks fail.
This is useful for the performance measurement of incorrect applets
(that have, for instance, been compiled with MONTGOMERY_MULT_SHORTCUT).
Host_testframe
) are contained in Testframe
.
Field Summary | |
---|---|
private static Reference<Integer> |
card_reader_number
Index of the card reader to use. |
static Option[] |
card_test_frame_options
Option array with the special options of the card test frame. |
private static Reference<Integer> |
jcop_port_number
The port number used for the jcop emulator. |
static String |
long_application_name
Long application name. |
private static Reference<Boolean> |
run_list_readers
Whether to list all connected card readers. |
static String |
short_application_name
Short application name for error messages. |
private static Reference<Card_terminal.Terminal_type> |
terminal_type
Terminal type to use. |
private static Card_terminal.Terminal_type |
terminal_type_default
Default terminal. |
Constructor Summary | |
---|---|
protected |
Card_testframe()
Static class, object creation disabled. |
Method Summary | |
---|---|
static void |
main(String[] args)
Main method of the card test frame. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String short_application_name
public static final String long_application_name
private static final Card_terminal.Terminal_type terminal_type_default
private static Reference<Card_terminal.Terminal_type> terminal_type
-jcop, -sun, -r
and -c
.
private static Reference<Integer> jcop_port_number
private static Reference<Integer> card_reader_number
-r
.
private static Reference<Boolean> run_list_readers
-list-readers
.
public static Option[] card_test_frame_options
Constructor Detail |
---|
protected Card_testframe()
Method Detail |
---|
public static void main(String[] args) throws NoSuchAlgorithmException, CardException, IOException
args
- command line arguments
CardException
- on communication errors
IOException
- if the applet cap file is not accessible
NoSuchAlgorithmException
- if no provider for RSA key
generation can be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |