Class DialogAuthenticator.PasswordDialog
package: src.net.jxta.impl.membership.pse
java.lang.Object
  |
  +--java.awt.Component
       |
       +--java.awt.Container
            |
            +--java.awt.Window
                 |
                 +--java.awt.Dialog
                      |
                      +--javax.swing.JDialog
                           |
                           +--net.jxta.impl.membership.pse.DialogAuthenticator.PasswordDialog
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
actionPerformed(ActionEvent e)
   {@inheritDoc}
 
public ID
   Returns the selected Identity.
 
public char[]
   Returns the Identity password.
 
public char[]
   Returns the KeyStore password.
 
public void
keyReleased(KeyEvent e)
   {@inheritDoc}
 
private void
public void
public boolean
   Returns the final state of the dialog.
 
Field Detail
cancelButton
private final JButton cancelButton

canceled
private boolean canceled = true

identityLabel
private final JLabel identityLabel

identityList
private final JComboBox identityList

identityPassField
private final JPasswordField identityPassField

identityPassLabel
private final JLabel identityPassLabel

initKeyStore
private boolean initKeyStore

okButton
private final JButton okButton

seedCert
private final X509Certificate seedCert

seedKey
private final EncryptedPrivateKeyInfo seedKey

seedPeer
private final PeerID seedPeer

storePassField
private final JPasswordField storePassField

storePassLabel
private final JLabel storePassLabel
Constructor Detail
PasswordDialog
PasswordDialog(PeerID seedPeer, X509Certificate seedCert, EncryptedPrivateKeyInfo seedKey)
Dialog to prompt for a password
Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)
{@inheritDoc}

getIdentity
public ID getIdentity()
Returns the selected Identity.
Return:
the selected Identity.

getIdentityPassword
public char[] getIdentityPassword()
Returns the Identity password.
Return:
the Identity password.

getKeyStorePassword
public char[] getKeyStorePassword()
Returns the KeyStore password.
Return:
the KeyStore password.

setOKState
private void setOKState()

showDialog
public void showDialog()

wasCanceled
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.