| java.lang.Object java.net.PasswordAuthentication
Constructor Summary | |
public | PasswordAuthentication(String userName, char[] password) Creates a new PasswordAuthentication object from the given
user name and password. |
Method Summary | |
public char[] | getPassword() Returns the user password.
Note that this method returns a reference to the password. | public String | getUserName() Returns the user name. |
PasswordAuthentication | public PasswordAuthentication(String userName, char[] password)(Code) | | Creates a new PasswordAuthentication object from the given
user name and password.
Note that the given user password is cloned before it is stored in
the new PasswordAuthentication object.
Parameters: userName - the user name Parameters: password - the user's password |
getPassword | public char[] getPassword()(Code) | | Returns the user password.
Note that this method returns a reference to the password. It is
the caller's responsibility to zero out the password information after
it is no longer needed.
the password |
getUserName | public String getUserName()(Code) | | Returns the user name.
the user name |
|
|