nl.nikhef.slcshttps.trust
Class TrustManagerImpl.StdioComm
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrustManagerImpl.StdioComm
TrustManagerImpl.StdioComm()
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
|