FileDocCategorySizeDatePackage
PasswordAuthentication.javaAPI DocJavaMail 1.4.32864Tue Nov 17 10:38:12 GMT 2009javax.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

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;