java.lang.Object | +--javax.mail.PasswordAuthentication
The class PasswordAuthentication is a data holder that is used by Authenticator. It is simply a repository for a user name and a password.
java.net.PasswordAuthentication
,
Authenticator
,
Authenticator.getPasswordAuthentication()
PasswordAuthentication(java.lang.String userName,
java.lang.String password)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public PasswordAuthentication(java.lang.String userName, java.lang.String password)
userName
- the user namepassword
- The user's passwordpublic java.lang.String getUserName()
public java.lang.String getPassword()