|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnl.nikhef.slcshttps.SURFCAHttps.StdioComm
static class SURFCAHttps.StdioComm
Implementation of a SURFCAHttps.SURFCACommunicator using simple text via
stdin/stderr/stdout.
SURFCAHttps.SURFCACommunicator| Constructor Summary | |
|---|---|
SURFCAHttps.StdioComm()
|
|
| Method Summary | |
|---|---|
void |
error(String text,
Exception e)
Called upon error. |
void |
postBrowse()
Called just after the webbrowser is started, prints a text and waits for confirmation, effectively blocking execution until the user is ready with the webbrowser. |
void |
preBrowse()
Called just before the webbrowser is started, prints a text and waits for confirmation. |
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)
It is called when interaction has been successful and the certificate stored, when SURFCAHttps.getShowSuccess() equals true, it
will then print a confirmation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SURFCAHttps.StdioComm()
| Method Detail |
|---|
public void preBrowse()
throws IOException
preBrowse in interface SURFCAHttps.SURFCACommunicatorIOException
public void postBrowse()
throws IOException
postBrowse in interface SURFCAHttps.SURFCACommunicatorIOException
public void error(String text,
Exception e)
Throwable.getMessage() from
e (if non-null) on stderr, any HTML italics
tags are removed.
error in interface SURFCAHttps.SURFCACommunicatortext - String - some descriptive text.e - Exception that caused the error (if any).SURFCAHttps.SURFCACommunicator.retry(String,Exception)
public boolean retry(String text,
Exception e)
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.
retry in interface SURFCAHttps.SURFCACommunicatortext - String - some text.e - Exception that caused the error (if any).
error(String,Exception)public void success(String text)
SURFCAHttps.getShowSuccess() equals true, it
will then print a confirmation.
success in interface SURFCAHttps.SURFCACommunicatortext - String - text describing the certificate
subject.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
| nl.nikhef.slcshttps | Mischa Sallé - msalle(AT)nikhef.nl |