java.lang.Object | |
↳ | java.net.PasswordAuthentication |
This immutable class is a data structure that encapsulates username and
password which is used by the
Authenticator
class.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates an instance of a password authentication with a specified
username and password.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Gets a clone of the password stored by this instance.
|
||||||||||
|
Gets the username stored by this instance.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates an instance of a password authentication with a specified username and password.
userName | the username to store. |
---|---|
password | the associated password to store. |
Gets a clone of the password stored by this instance. The user is responsible to finalize the returned array if the password clone is no longer needed.
Gets the username stored by this instance.