FileDocCategorySizeDatePackage
GUILoginDialog.javaAPI DocGlassfish v2 API16696Fri May 04 22:35:22 BST 2007com.sun.enterprise.security

GUILoginDialog

public final class GUILoginDialog extends Object implements LoginDialog
An implementation of a LoginDialog that presents a swing based GUI for querying username and password.
author
Harish Prabandham
author
Harpreet Singh

Fields Summary
private static final Logger
_logger
private String
entity
private PassphraseDialog
passphraseDialog
private CertificateDialog
certDialog
private static final com.sun.enterprise.util.LocalStringManagerImpl
localStrings
Constructors Summary
public GUILoginDialog()


         
        
	this (localStrings.getLocalString("enterprise.security.defaultEntity", "user"));
    
public GUILoginDialog(String entity)

	this.entity = entity;
	JFrame f = new JFrame();
	String phrase = localStrings.getLocalString("enterprise.security.loginPhrase", "Login for ");
	passphraseDialog = new PassphraseDialog(f, phrase + entity + ":");
	passphraseDialog.show();
    
public GUILoginDialog(String entity, Callback[] callbacks)

        this.entity = entity;
	String phrase = localStrings.getLocalString("enterprise.security.loginPhrase", "Login for ");
	JFrame f = new JFrame();
	passphraseDialog = new PassphraseDialog(f, phrase + entity + ":", callbacks);
	passphraseDialog.show();
    
Methods Summary
public java.lang.StringgetPassword()

return
The password of the user in plain text...

	return passphraseDialog.passphrase;
    
public java.lang.StringgetUserName()

return
The username of the user.

	return passphraseDialog.username;