Package jakarta.mail
Class PasswordAuthentication
java.lang.Object
jakarta.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.
- Author:
- Bill Foote
- See Also:
-
Constructor Summary
ConstructorDescriptionPasswordAuthentication
(String userName, String password) Initialize a new PasswordAuthentication -
Method Summary
-
Constructor Details
-
PasswordAuthentication
Initialize a new PasswordAuthentication- Parameters:
userName
- the user namepassword
- The user's password
-
-
Method Details
-
getUserName
- Returns:
- the user name
-
getPassword
- Returns:
- the password
-