java.net
public final class PasswordAuthentication extends Object
Since: 1.2
Constructor Summary | |
---|---|
PasswordAuthentication(String username, char[] password)
Creates a new PasswordAuthentication object from the
specified username and password.
|
Method Summary | |
---|---|
char[] | getPassword()
Returns the password associated with this object
|
String | getUserName()
Returns the username associated with this object
|
PasswordAuthentication
object from the
specified username and password.
Parameters: username The username for this object password The password for this object
Returns: The password
Returns: The username