nl.nikhef.slcshttps
Interface SURFCAHttps.SURFCACommunicator

All Known Implementing Classes:
SURFCAHttps.StdioComm, SURFCAInitDialog.EmptyCommunicator, SURFCAPopupComm
Enclosing class:
SURFCAHttps

public static interface SURFCAHttps.SURFCACommunicator

Interface for SURFCAHttps communication with the user.

Version:
0.1
Author:
Mischa Sallé
See Also:
SURFCAHttps.StdioComm

Method Summary
 void error(String text, Exception e)
          Called when an error occurs.
 void postBrowse()
          Called just after the webbrowser is started, which can be used to give us feedback when the user is ready with the webbrowser.
 void preBrowse()
          Called just before the webbrowser is started.
 boolean retry(String text, Exception e)
          Identical to error(String,Exception) except that it is called when an error occurs that might be fixed by the user.
 void success(String text)
          Called when the interaction has been successful and the certificate stored.
 

Method Detail

preBrowse

void preBrowse()
               throws IOException
Called just before the webbrowser is started.

Throws:
IOException

postBrowse

void postBrowse()
                throws IOException
Called just after the webbrowser is started, which can be used to give us feedback when the user is ready with the webbrowser.

Throws:
IOException

error

void error(String text,
           Exception e)
Called when an error occurs. It prints an error string using the text and e.g. the Throwable.getMessage() from e.

Parameters:
text - String - some text.
e - Exception that caused the error (if any).
See Also:
retry(String,Exception)

retry

boolean retry(String text,
              Exception e)
Identical to error(String,Exception) except that it is called when an error occurs that might be fixed by the user. (S)He can then choose to retry.

Parameters:
text - String - some text.
e - Exception that caused the error (if any).
Returns:
boolean whether or not the user wishes to retry.
See Also:
error(String,Exception)

success

void success(String text)
Called when the interaction has been successful and the certificate stored. It is supposed to make use of SURFCAHttps.getShowSuccess() to decide whether to show anything.

Parameters:
text - String - some text


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