// adding the password field
keystorePassword = new JPasswordField (20);
kpPanel.add (lbl);
kpPanel.add (keystorePassword);
/* get the keystore password */
final SSLUtils sslUtils = Globals.get(SSLUtils.class);
// ok button For keystore password
okForKP = new
JButton(localStrings.getLocalString
( "enterprise.security.ok", " OK "));
okForKP.setActionCommand ("ok");
okForKP.addActionListener (new ActionListener() {
public void actionPerformed(ActionEvent ae) {
char[] passKPFromUser = keystorePassword.getPassword();
if (sslUtils.verifyMasterPassword(passKPFromUser)) {
okForKP.setEnabled (false);
cancelForKP.setEnabled (false);
keystorePassword.setEditable (false);
CardLayout cl = (CardLayout) (getContentPane ()).getLayout ();
cl.show (getContentPane (), pnlCertificateList);