java.net
public
final
class
java.net.PasswordAuthentication
This class is a data structure that contains the username and password.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
PasswordAuthentication(String userName, char[] password)
Creates an instance of a password authentication with a username and
password.
Parameters
userName
| java.lang.String the username |
password
| char[] the password
|
Public Methods
public
char[]
getPassword()
Returns the reference of the password of this class.
Returns
- char[] the reference of the password
public
String
getUserName()
Returns the username of this class.
Returns
- java.lang.String the username of this class