javax.mail
Class PasswordAuthentication
java.lang.Object
|
+--javax.mail.PasswordAuthentication
public final class PasswordAuthentication
extends java.lang.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.
PasswordAuthentication
public PasswordAuthentication(String userName, String password)
Initialize a new PasswordAuthentication
- userName - the user name
- password - The user's password
getPassword
public String getPassword()
- the password
getUserName
public String getUserName()
- the user name