|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface PKCS12Https.PKCS12Communicator
Interface for PKCS12Https communication with the user.
PKCS12Https.StdioComm| Method Summary | |
|---|---|
void |
error(String filename,
Exception e)
called when an error occurs. |
String |
getFile(String path)
method to get the PKCS12 filename from the user. |
char[] |
getPassword(String prompt)
method to get the PKCS12 password from the user. |
void |
success(String filename,
String subject)
called when the PKCS12 file is successfully imported and the certificate stored. |
| Method Detail |
|---|
char[] getPassword(String prompt)
throws IOException
prompt - String to print before input.
IOException - upon I/O error
String getFile(String path)
throws IOException
path - String path to start in, use as offset.
IOException - upon I/O error
void error(String filename,
Exception e)
throws IOException
Throwable.getMessage() from
e.
filename - String describing the PKCS12 filename
which was tried (if any).e - Exception that caused the error (if any).
IOException - with a (new) description of the problem
void success(String filename,
String subject)
PKCS12Https.getShowSuccess() to decide whether to show anything.
filename - String describing the PKCS12 filename
which was imported.subject - String describing the Subject DN of the
certificate.
|
|||||||||
| 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 |