public final class PasswordAuthentication extends Object
Authenticator class.Authenticator| Constructor and Description |
|---|
PasswordAuthentication(String userName,
char[] password)
Creates an instance of a password authentication with a specified
username and password.
|
| Modifier and Type | Method and Description |
|---|---|
char[] |
getPassword()
Gets a clone of the password stored by this instance.
|
String |
getUserName()
Gets the username stored by this instance.
|
public PasswordAuthentication(String userName, char[] password)
userName - the username to store.password - the associated password to store.public char[] getPassword()
public String getUserName()