Build 1.0_r1(from source)

java.net
Class PasswordAuthentication

java.lang.Object
  extended by java.net.PasswordAuthentication

public final class PasswordAuthentication
extends Object

This class is a data structure that contains the username and password.


Constructor Summary
PasswordAuthentication(String userName, char[] password)
          Creates an instance of a password authentication with a username and password.
 
Method Summary
 char[] getPassword()
          Returns the reference of the password of this class.
 String getUserName()
          Returns the username of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordAuthentication

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
Method Detail

getPassword

public char[] getPassword()
Returns the reference of the password of this class.

Returns:
char[] the reference of the password

getUserName

public String getUserName()
Returns the username of this class.

Returns:
java.lang.String the username of this class

Build 1.0_r1(from source)

Please submit a feedback, bug or feature