nl.nikhef.slcshttps.gui
Class SURFCAInitDialog.EmptyCommunicator

java.lang.Object
  extended by nl.nikhef.slcshttps.gui.SURFCAInitDialog.EmptyCommunicator
All Implemented Interfaces:
SURFCAHttps.SURFCACommunicator
Enclosing class:
SURFCAInitDialog

private class SURFCAInitDialog.EmptyCommunicator
extends Object
implements SURFCAHttps.SURFCACommunicator

This is a (private) almost trivial implementation of SURFCAHttps.SURFCACommunicator which is needed since all communication is done through the SURFCAInitDialog.

Version:
0.1
Author:
Mischa Sallé

Constructor Summary
private SURFCAInitDialog.EmptyCommunicator()
           
 
Method Summary
 void error(String text, Exception e)
          Trivial method, called when an error occurs.
 void postBrowse()
          Trivial method, called just after the webbrowser is started.
 void preBrowse()
          Trivial method, called just before the webbrowser is started.
 boolean retry(String text, Exception e)
          Trivial method, called when an error occurs which might be fixed by the user, always returning false meaning do not retry.
 void success(String dummy)
          Called when the interaction has been successful and the certificate stored, which is just before the last textcard is shown is SURFCAInitDialog, for which it sets an appropriate text about the Subject DN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SURFCAInitDialog.EmptyCommunicator

private SURFCAInitDialog.EmptyCommunicator()
Method Detail

preBrowse

public void preBrowse()
               throws IOException
Trivial method, called just before the webbrowser is started.

Specified by:
preBrowse in interface SURFCAHttps.SURFCACommunicator
Throws:
IOException - never thrown

postBrowse

public void postBrowse()
                throws IOException
Trivial method, called just after the webbrowser is started.

Specified by:
postBrowse in interface SURFCAHttps.SURFCACommunicator
Throws:
IOException - never thrown

error

public void error(String text,
                  Exception e)
Trivial method, called when an error occurs.

Specified by:
error in interface SURFCAHttps.SURFCACommunicator
Parameters:
text - ignored
e - ignored
See Also:
SURFCAHttps.SURFCACommunicator.retry(String,Exception)

retry

public boolean retry(String text,
                     Exception e)
Trivial method, called when an error occurs which might be fixed by the user, always returning false meaning do not retry.

Specified by:
retry in interface SURFCAHttps.SURFCACommunicator
Parameters:
text - ignored
e - ignored
Returns:
false
See Also:
SURFCAHttps.SURFCACommunicator.error(String,Exception)

success

public void success(String dummy)
Called when the interaction has been successful and the certificate stored, which is just before the last textcard is shown is SURFCAInitDialog, for which it sets an appropriate text about the Subject DN.

Specified by:
success in interface SURFCAHttps.SURFCACommunicator
Parameters:
dummy - String - ignored.


nl.nikhef.slcshttps Mischa Sallé - msalle(AT)nikhef.nl