FileDocCategorySizeDatePackage
PasswordAuthentication.javaAPI DocGlassfish v2 API2946Mon May 14 15:28:48 BST 2007javax.mail

PasswordAuthentication

public final class PasswordAuthentication extends Object
The class PasswordAuthentication is a data holder that is used by Authenticator. It is simply a repository for a user name and a password.
see
java.net.PasswordAuthentication
see
javax.mail.Authenticator
see
javax.mail.Authenticator#getPasswordAuthentication()
author
Bill Foote
version
1.6, 05/04/07

Fields Summary
private String
userName
private String
password
Constructors Summary
public PasswordAuthentication(String userName, String password)
Initialize a new PasswordAuthentication

param
userName the user name
param
password The user's password

	this.userName = userName;
	this.password = password;
    
Methods Summary
public java.lang.StringgetPassword()

return
the password

	return password;
    
public java.lang.StringgetUserName()

return
the user name

	return userName;