Top Description Fields Constructors Methods
javax.mail

public final Class PasswordAuthentication

extends Object
Class Inheritance

The class PasswordAuthentication is a data holder that is used by Authenticator. It is simply a repository for a user name and a password.
Author
Bill Foote
See Also
java.net.PasswordAuthentication, javax.mail.Authenticator, javax.mail.Authenticator#getPasswordAuthentication()

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
PasswordAuthentication(String
the user name
userName
,
String
The user's password
password
)

Initialize a new PasswordAuthentication

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the password
getPassword
()

public String

Returns:

the user name
getUserName
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

passwordback to summary
private final String password
userNameback to summary
private final String userName

Constructor Detail

PasswordAuthenticationback to summary
public PasswordAuthentication(String userName, String password)

Initialize a new PasswordAuthentication

Parameters
userName:String

the user name

password:String

The user's password

Method Detail

getPasswordback to summary
public String getPassword()
Returns:String

the password

getUserNameback to summary
public String getUserName()
Returns:String

the user name