ds.ov2.front
Class Front_protocols

java.lang.Object
  extended by ds.ov2.front.Front_protocols

public class Front_protocols
extends Object

Central point of the OV-chip RSA applet. There is precisely one instance of this class in the RSA 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 RSA applet.

CPP Preprocessing
This class uses the following cpp defines: PACKAGE, PUBLIC, TESTFRAME
Execution Environment:
host, card
Author:
Hendrik Tews
Version:
$Revision: 1.5 $
Last Commit:
$Date: 2009-06-18 11:57:38 $ by $Author: tews $

Field Summary
private  Protocol[] protocols
          Array of registered protocols.
 Registered_protocols registered_protocols
          Service instance for protocol arrays.
 RSA_card_debug_description rsa_debug
          Description of the RSA card debug protocols.
 RSA_card_protocol_description rsa_description
          Description of the normal RSA card protocols.
 
Constructor Summary
Front_protocols()
          Central creation/allocation point of the OV-chip RSA applet.
 
Method Summary
 void init_protocols()
          Load protocols array.
 void update_steps()
          Update arguments and results of 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

rsa_description

public RSA_card_protocol_description rsa_description
Description of the normal RSA card protocols.


rsa_debug

public RSA_card_debug_description rsa_debug
Description of the RSA card debug protocols. Only available if TESTFRAME is defined.


protocols

private Protocol[] protocols
Array of registered protocols. Allocated in constructor, loaded in init_protocols().


registered_protocols

public final Registered_protocols registered_protocols
Service instance for protocol arrays.

Constructor Detail

Front_protocols

public Front_protocols()
Central creation/allocation point of the OV-chip RSA applet. This constructor creates all protocol descriptions (and thereby all test applet objects) and calls init_protocols() to allocate and initialize the protocols array, which is then registered in registered_protocols.

Method Detail

init_protocols

public void init_protocols()
Load protocols array. Called in the constructor and after the allocate protocol. Before the allocate protocol all other protocols are invalid (they are null).


update_steps

public void update_steps()
Update arguments and results of all steps in all protocols. Needed because the RSA OV-chip applet switches references in the resign step, see RSA_plain_card.switch_to_new_attributes and RSA_mont_card.switch_to_new_attributes.