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) Initialize a new PasswordAuthentication |
getPassword() | |
getUserName() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
publicPasswordAuthentication(java.lang.String userName, java.lang.String password)
userName
- the user namepassword
- The user's passwordpublic java.lang.StringgetUserName()
public java.lang.StringgetPassword()