java.lang.Object
java.net.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.
- Since:
- 1.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordAuthentication
(String userName, char[] password) Creates a newPasswordAuthentication
object from the given user name and password. -
Method Summary
Modifier and TypeMethodDescriptionchar[]
Returns the user password.Returns the user name.