public final class PasswordAuthentication extends Object
| Constructor and Description |
|---|
PasswordAuthentication(String username,
char[] password)
Creates a new
PasswordAuthentication object from the
specified username and password. |
| Modifier and Type | Method and Description |
|---|---|
char[] |
getPassword()
Returns the password associated with this object
|
String |
getUserName()
Returns the username associated with this object
|
public PasswordAuthentication(String username, char[] password)
PasswordAuthentication object from the
specified username and password.username - The username for this objectpassword - The password for this objectpublic String getUserName()
public char[] getPassword()