javax.obex
Class PasswordAuthentication
java.lang.Object
|
+--javax.obex.PasswordAuthentication
- public class PasswordAuthentication
- extends java.lang.Object
This class holds user name and password combinations.
|
Constructor Summary |
PasswordAuthentication(byte[] userName,
byte[] password)
Creates a new PasswordAuthentication with the user name
and password provided. |
|
Method Summary |
byte[] |
getPassword()
Retrieves the password. |
byte[] |
getUserName()
Retrieves the user name that was specified in the constructor. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PasswordAuthentication
public PasswordAuthentication(byte[] userName,
byte[] password)
- Creates a new
PasswordAuthentication with the user name
and password provided.
- Parameters:
userName - the user name to include; this may be nullpassword - the password to include in the response- Throws:
- NullPointerException - if
password is
null
getUserName
public byte[] getUserName()
- Retrieves the user name that was specified in the constructor.
The user name may be
null.
- Returns:
- the user name
getPassword
public byte[] getPassword()
- Retrieves the password.
- Returns:
- the password