nl.nikhef.slcshttps.trust
Interface TrustManagerImpl.TrustCommunicator

All Known Implementing Classes:
TrustManagerImpl.StdioComm, TrustPopupComm
Enclosing class:
TrustManagerImpl

public static interface TrustManagerImpl.TrustCommunicator

Interface for TrustManagerImpl communication with the user. Only one method needs to be implemented, which asks the user for confirmation.

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

Method Summary
 boolean confirm(String host, String mesg, String ques, String[] errs, String[] olderrs)
          method to ask the user for confirmation.
 

Method Detail

confirm

boolean confirm(String host,
                String mesg,
                String ques,
                String[] errs,
                String[] olderrs)
method to ask the user for confirmation.

Parameters:
host - String with the hostname to which an SSL is being set up.
mesg - String containing a message describing the problem.
ques - String containing a question asked to the user just before user input.
errs - String array with a list of errors.
olderrs - String array with a list of errors when this cert was seen previously.
Returns:
boolean true when the user accepts it, false when the user rejects it.


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