|
|||||||||
| Home >> All >> java >> [ net overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.net
Class PasswordAuthentication

java.lang.Objectjava.net.PasswordAuthentication
- public final class PasswordAuthentication
- extends java.lang.Object
This class serves a container for username/password pairs.
- Since:
- 1.2
| Field Summary | |
private char[] |
password
The password |
private java.lang.String |
username
The username |
| Constructor Summary | |
PasswordAuthentication(java.lang.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 |
java.lang.String |
getUserName()
Returns the username associated with this object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
username
private java.lang.String username
- The username
password
private char[] password
- The password
| Constructor Detail |
PasswordAuthentication
public PasswordAuthentication(java.lang.String username, char[] password)
- Creates a new
PasswordAuthenticationobject from the specified username and password.
| Method Detail |
getUserName
public java.lang.String getUserName()
- Returns the username associated with this object
getPassword
public char[] getPassword()
- Returns the password associated with this object
|
|||||||||
| Home >> All >> java >> [ net overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
java.net.PasswordAuthentication