public final class PasswordAuthentication extends java.lang.Object
| Constructor and Description |
|---|
PasswordAuthentication(java.lang.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
|
java.lang.String |
getUserName()
Returns the username associated with this object
|
public PasswordAuthentication(java.lang.String username, char[] password)
PasswordAuthentication object from the
specified username and password.username - The username for this objectpassword - The password for this objectpublic java.lang.String getUserName()
public char[] getPassword()