{
JMenuItem item = (JMenuItem)e.getSource();
if (item == simpleSSL)
{
KeystoreGUI win = new KeystoreGUI(jxplorer, JXplorer.getMyProperties(),
JXplorer.getProperty(JXplorer.CA_PATH_PROPERTY),
null,
JXplorer.getProperty(JXplorer.CA_TYPE_PROPERTY),
CBIntText.get("Manage Your Trusted Server Certificates."),
false, HelpIDs.SSL_CERTS, false);
win.setSize(450,320);
CBUtility.center(win, jxplorer);
win.setVisible(true); // may modify jxplorer properties
}
else if (item == authSSL)
{
KeystoreGUI win = new KeystoreGUI(jxplorer, JXplorer.getMyProperties(),
JXplorer.getProperty(JXplorer.CLIENT_PATH_PROPERTY),
null,
JXplorer.getProperty(JXplorer.CLIENT_TYPE_PROPERTY),
CBIntText.get("Manage Your Own Private Keys and Certificates."),
true, HelpIDs.SSL_CERTS, false);
win.setSize(450,440);
CBUtility.center(win, jxplorer);
win.setVisible(true); // may modify jxplorer properties
}
/*
* allow the user to select which keystore files and keystore types to use.
*/