|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.nikhef.slcshttps.gui.PKCS12PopupComm
public class PKCS12PopupComm
Implementation of PKCS12Https.PKCS12Communicator
using popup
windows.
PKCS12Https.PKCS12Communicator
Constructor Summary | |
---|---|
PKCS12PopupComm()
|
Method Summary | |
---|---|
void |
error(String fileName,
Exception e)
Called when an error occurs, showing a popup window with an error string about the filename (if non-null) and the Throwable.getMessage()
from e (when non-null). |
String |
getFile(String path)
Method to get the PKCS12 filename from the user, using a popup. |
char[] |
getPassword(String prompt)
Method to get the PKCS12 password from the user, using a popup. |
void |
success(String fileName,
String subject)
Called when the PKCS12 file is successfully imported and the certificate stored; when PKCS12Https.getShowSuccess() equals
true it will show a confirmation popup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PKCS12PopupComm()
Method Detail |
---|
public char[] getPassword(String prompt)
getPassword
in interface PKCS12Https.PKCS12Communicator
prompt
- String
to print before input.
IOException
- upon I/O errorPasswordPopup
public String getFile(String path) throws IOException
path
is non-null it it used to start the file popup in,
otherwise the user default directory is used.
getFile
in interface PKCS12Https.PKCS12Communicator
path
- String
path to start in, use as offset.
IOException
- upon I/O error (including unreadability).FilePopup
public void error(String fileName, Exception e) throws IOException
Throwable.getMessage()
from e
(when non-null).
error
in interface PKCS12Https.PKCS12Communicator
fileName
- String
describing the PKCS12 filename
which was tried.e
- Exception
that caused the error (if any).
IOException
- with a (new) description of the problemGraphTools.errorPopup(String,Exception)
public void success(String fileName, String subject)
PKCS12Https.getShowSuccess()
equals
true
it will show a confirmation popup.
success
in interface PKCS12Https.PKCS12Communicator
fileName
- String
describing the PKCS12 filename
which was imported.subject
- String
describing the Subject DN of the
certificate.GraphTools.successPopup(String)
|
|||||||||
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 |