java.net.Authenticator , java.net.Authenticator#getPasswordAuthentication()
| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | PasswordAuthentication(String
the user name userName, char[] the user's password password)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public char[] | |
| public String |
| password | back to summary |
|---|---|
| private final char[] password | |
| userName | back to summary |
|---|---|
| private final String userName | |
| PasswordAuthentication | back to summary |
|---|---|
| public PasswordAuthentication(String userName, char[] password) Creates a new Note that the given user password is cloned before it is stored in
the new
| |
| getPassword | back to summary |
|---|---|
| public char[] getPassword() Returns the user password. Note that this method returns a reference to the password. It is the caller's responsibility to zero out the password information after it is no longer needed.
| |
| getUserName | back to summary |
|---|---|
| public String getUserName() Returns the user name.
| |