public final class PasswordAuthentication extends Object
Constructor and Description |
---|
PasswordAuthentication(byte[] userName,
byte[] password)
Creates a new
PasswordAuthentication with the user name and
password provided. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getPassword()
Retrieves the password.
|
byte[] |
getUserName()
Retrieves the user name that was specified in the constructor.
|
public PasswordAuthentication(byte[] userName, byte[] password)
PasswordAuthentication
with the user name and
password provided.userName
- the user name to include; this may be null
password
- the password to include in the responseNullPointerException
- if password
is
null