|
Class DialogAuthenticator.PasswordDialog
|
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--javax.swing.JDialog
|
private class DialogAuthenticator.PasswordDialog
Extends:
javax.swing.JDialog
Implements:
java.awt.event.ActionListener
Swing user interface for password entry and identity selection.
FIXME bondolo 20040329 should be localizable.
| Inner Class Summary |
private final static class |
Handler for key events. |
| Field Summary |
private final JButton |
|
private boolean |
|
private final JLabel |
|
private final JComboBox |
|
private final JPasswordField |
|
private final JLabel |
|
private boolean |
|
private final JButton |
|
private final X509Certificate |
|
private final EncryptedPrivateKeyInfo |
|
private final PeerID |
|
private final JPasswordField |
|
private final JLabel |
|
| Constructor Summary |
| |
PasswordDialog(PeerID seedPeer, X509Certificate seedCert, EncryptedPrivateKeyInfo seedKey) Dialog to prompt for a password |
| Method Summary |
public void |
{@inheritDoc} |
public ID |
Returns the selected Identity. |
public char[] |
Returns the Identity password. |
public char[] |
Returns the KeyStore password. |
public void |
{@inheritDoc} |
private void |
|
public void |
|
public boolean |
Returns the final state of the dialog. |
private final JButton cancelButton
private boolean canceled = true
private final JLabel identityLabel
private final JComboBox identityList
private final JPasswordField identityPassField
private final JLabel identityPassLabel
private boolean initKeyStore
private final JButton okButton
private final X509Certificate seedCert
private final EncryptedPrivateKeyInfo seedKey
private final PeerID seedPeer
private final JPasswordField storePassField
private final JLabel storePassLabel
PasswordDialog(PeerID seedPeer, X509Certificate seedCert, EncryptedPrivateKeyInfo seedKey)
Dialog to prompt for a password
public void actionPerformed(ActionEvent e)
{@inheritDoc}
public ID getIdentity()
Returns the selected Identity.
Return:
the selected Identity.
public char[] getIdentityPassword()
Returns the Identity password.
Return:
the Identity password.
public char[] getKeyStorePassword()
Returns the KeyStore password.
Return:
the KeyStore password.
private void setOKState()
public void showDialog()
public boolean wasCanceled()
Returns the final state of the dialog. Until the "OK" button is
pressed the dialog is "cancelled".
Parameters:
returns the final state of the dialog.