nl.nikhef.slcshttps.trust
Class TrustManagerImpl.StdioComm

java.lang.Object
  extended by nl.nikhef.slcshttps.trust.TrustManagerImpl.StdioComm
All Implemented Interfaces:
TrustManagerImpl.TrustCommunicator
Enclosing class:
TrustManagerImpl

static class TrustManagerImpl.StdioComm
extends Object
implements TrustManagerImpl.TrustCommunicator

This Implementation uses only stdio/stderr for I/O.

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

Constructor Summary
TrustManagerImpl.StdioComm()
           
 
Method Summary
 boolean confirm(String host, String mesg, String ques, String[] errs, String[] olderrs)
          method to ask the user for confirmation using stdio/stderr.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustManagerImpl.StdioComm

TrustManagerImpl.StdioComm()
Method Detail

confirm

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

Specified by:
confirm in interface TrustManagerImpl.TrustCommunicator
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