ds.ov2.test
Class Test_protocols

java.lang.Object
  extended by ds.ov2.test.Test_protocols

public class Test_protocols
extends Object

Central point of the test applet. There is precisely one instance of this class in the test applet. This instance bundles all the functionality of the applet in the array of registered protocols. This class is also responsible for creating/initializing the complete object structure of the test applet.

CPP Preprocessing
This class uses the following cpp defines: PACKAGE, PUBLIC JAVACARD_APPLET
Execution Environment:
host, card
Author:
Hendrik Tews
Version:
$Revision: 1.14 $
Last Commit:
$Date: 2010-02-18 11:42:49 $ by $Author: tews $

Field Summary
 Bignat_protocols_description bignat_protocols
          Protocol description for various Bignat (performance) tests.
 Bignats bignats
          Collection of all Bignats, Vectors and RSA exponents.
 Data_protocol_description data_protocol
          Data protocol description instance.
 Exponent_perf_description exponent_protocols
          Protocol description for vector exponent.
 Misc_protocols_description misc_protocols
          Misc protocol description instance.
 Registered_protocols registered_protocols
          Service instance for protocol arrays.
 
Constructor Summary
Test_protocols(APDU_short short_bignat_size, APDU_short long_bignat_size, APDU_short double_bignat_size, APDU_short max_vector_length, APDU_byte_array cap_creation_time)
          Central creation/allocation point of the test applet.
 
Method Summary
 void set_result_sizes()
          Recompute the cached total result size in all steps in all protocols.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bignats

public final Bignats bignats
Collection of all Bignats, Vectors and RSA exponents.


misc_protocols

public final Misc_protocols_description misc_protocols
Misc protocol description instance.


data_protocol

public final Data_protocol_description data_protocol
Data protocol description instance.


bignat_protocols

public final Bignat_protocols_description bignat_protocols
Protocol description for various Bignat (performance) tests.


exponent_protocols

public final Exponent_perf_description exponent_protocols
Protocol description for vector exponent.


registered_protocols

public final Registered_protocols registered_protocols
Service instance for protocol arrays.

Constructor Detail

Test_protocols

public Test_protocols(APDU_short short_bignat_size,
                      APDU_short long_bignat_size,
                      APDU_short double_bignat_size,
                      APDU_short max_vector_length,
                      APDU_byte_array cap_creation_time)
Central creation/allocation point of the test applet. This constructor creates all protocol descriptions (and thereby all test applet objects) and allocates and initializes the protocol array, which is then registered in registered_protocols.

Parameters:
short_bignat_size - size in bytes for the (short) exponent Bignats
long_bignat_size - size in bytes for the (long) base Bignats
double_bignat_size - size in bytes for the double-sized Bignats
max_vector_length - initialization length for the base and exponent vectors.
cap_creation_time - applet cap file creation time as returned by File.lastModified()
Method Detail

set_result_sizes

public void set_result_sizes()
Recompute the cached total result size in all steps in all protocols. Needs to be done after each resizing operation.