ds.ov2.gui
Class Gui_protocol_messages

java.lang.Object
  extended by ds.ov2.gui.Gui_protocol_messages
All Implemented Interfaces:
RSA_protocol_messages

public class Gui_protocol_messages
extends Object
implements RSA_protocol_messages

Display various progress messages in the graphical demonstrator. All the progress methods in here are called from deep within the terminal thread. The methods must therefore not directly access the GUI but rather publish suitable GUI actions.

Execution Environment:
host
Author:
Hendrik Tews
Version:
$Revision: 1.9 $
Last Commit:
$Date: 2009-06-16 08:16:06 $ by $Author: tews $

Field Summary
private  Terminal_thread terminal_thread
          The Terminal thread that is used to publish the progress messages to the GUI.
 
Constructor Summary
Gui_protocol_messages(Terminal_thread terminal_thread)
          Constructor.
 
Method Summary
 void delete_applet_failure(String name)
          Called when applet/package deletion failed (in Card_protocols.delete_applets).
 void delete_applet(String name)
          Called before starting to delete an applet or a package (in Card_protocols.delete_applets).
 void entry_gate_committed(boolean signature_ok, BigInteger blinded_a)
          Called when the host received the commitment from the applet during the proof protocol.
 void entry_gate_finished(boolean result)
          Called when the entry-gate proof protocol has been finished.
 void entry_gate_got_response()
          Called when the host received the response from the applet for its challenge during the proof protocol.
 void entry_gate_start()
          Called when the entry-gate proof protocol starts.
 void initialize_allocate_finished()
          Called when the allocate call is finished.
 void initialize_allocate_start()
          Called before the allocate call to the applet starts.
 void initialize_data_copied(BigInteger blinded_a)
          Called when the initialize call to the applet completed and all data has been copied to the applet.
 void initialize_finished()
          Called when applet initialization is finished.
 void initialize_resign()
          Called before the start of the resign protocol that is part of applet initialization.
 void initialize_start()
          Called when initialization starts.
 void load_applet_finished()
          Called when applet loading finished during applet installation (in Card_protocols.install_applet_with_gps).
 void resign_checked_signature(boolean checked_signature)
          Called when the signature of the applet was accepted during the resign protocol.
 void resign_finished(boolean accepted)
          Called when the resign protocol has been finished.
 void resign_got_challenge()
          Called when the host received the challenge from the applet during the resign protocol.
 void resign_got_signature(BigInteger blinded_a)
          Called when the host received the attribute expression and the signature from the appled during the resign protocol.
 void resign_start()
          Called when the resign protocol starts.
 void start_install(String name)
          Called when starting to install an applet on a card (in Card_protocols.reinstall_personalize).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

terminal_thread

private final Terminal_thread terminal_thread
The Terminal thread that is used to publish the progress messages to the GUI.

Constructor Detail

Gui_protocol_messages

public Gui_protocol_messages(Terminal_thread terminal_thread)
Constructor.

Parameters:
terminal_thread - terminal thread instance to publish the GUI progress messages
Method Detail

start_install

public void start_install(String name)
Called when starting to install an applet on a card (in Card_protocols.reinstall_personalize).

Parameters:
name - name of the applet

load_applet_finished

public void load_applet_finished()
Called when applet loading finished during applet installation (in Card_protocols.install_applet_with_gps).


delete_applet

public void delete_applet(String name)
Called before starting to delete an applet or a package (in Card_protocols.delete_applets).

Parameters:
name - the name of the applet/package

delete_applet_failure

public void delete_applet_failure(String name)
Called when applet/package deletion failed (in Card_protocols.delete_applets).

Parameters:
name - the name of the applet/package

initialize_start

public void initialize_start()
Called when initialization starts.

Specified by:
initialize_start in interface RSA_protocol_messages

initialize_allocate_start

public void initialize_allocate_start()
Called before the allocate call to the applet starts.

Specified by:
initialize_allocate_start in interface RSA_protocol_messages

initialize_allocate_finished

public void initialize_allocate_finished()
Called when the allocate call is finished.

Specified by:
initialize_allocate_finished in interface RSA_protocol_messages

initialize_data_copied

public void initialize_data_copied(BigInteger blinded_a)
Called when the initialize call to the applet completed and all data has been copied to the applet.

Specified by:
initialize_data_copied in interface RSA_protocol_messages
Parameters:
blinded_a - the blinded attribute expression of the new applet

initialize_resign

public void initialize_resign()
Called before the start of the resign protocol that is part of applet initialization.

Specified by:
initialize_resign in interface RSA_protocol_messages

initialize_finished

public void initialize_finished()
Called when applet initialization is finished.

Specified by:
initialize_finished in interface RSA_protocol_messages

resign_start

public void resign_start()
Called when the resign protocol starts. Displays the progress message either in the office or the automaton tab, depending on whether this resign is part of applet initialization or not.

Specified by:
resign_start in interface RSA_protocol_messages

resign_got_signature

public void resign_got_signature(BigInteger blinded_a)
Called when the host received the attribute expression and the signature from the appled during the resign protocol. Displays the progress message either in the office or the automaton tab, depending on whether this resign is part of applet initialization or not.

Specified by:
resign_got_signature in interface RSA_protocol_messages
Parameters:
blinded_a - the blinded attribute expression of the applet

resign_checked_signature

public void resign_checked_signature(boolean checked_signature)
Called when the signature of the applet was accepted during the resign protocol. Displays the progress message either in the office or the automaton tab, depending on whether this resign is part of applet initialization or not.

Specified by:
resign_checked_signature in interface RSA_protocol_messages
Parameters:
checked_signature - whether the signature was actually checked

resign_got_challenge

public void resign_got_challenge()
Called when the host received the challenge from the applet during the resign protocol. Displays the progress message either in the office or the automaton tab, depending on whether this resign is part of applet initialization or not.

Specified by:
resign_got_challenge in interface RSA_protocol_messages

resign_finished

public void resign_finished(boolean accepted)
Called when the resign protocol has been finished. Displays the progress message either in the office or the automaton tab, depending on whether this resign is part of applet initialization or not.

Specified by:
resign_finished in interface RSA_protocol_messages
Parameters:
accepted - true if the card accepted the new signature

entry_gate_start

public void entry_gate_start()
Called when the entry-gate proof protocol starts.

Specified by:
entry_gate_start in interface RSA_protocol_messages

entry_gate_committed

public void entry_gate_committed(boolean signature_ok,
                                 BigInteger blinded_a)
Called when the host received the commitment from the applet during the proof protocol.

Specified by:
entry_gate_committed in interface RSA_protocol_messages
Parameters:
signature_ok - true if the applet produced a valid signature
blinded_a - the blinded attribute expression of the new applet

entry_gate_got_response

public void entry_gate_got_response()
Called when the host received the response from the applet for its challenge during the proof protocol.

Specified by:
entry_gate_got_response in interface RSA_protocol_messages

entry_gate_finished

public void entry_gate_finished(boolean result)
Called when the entry-gate proof protocol has been finished.

Specified by:
entry_gate_finished in interface RSA_protocol_messages
Parameters:
result - true if the response from the applet was valid and the proof is therefore accepted