Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.net
Class PasswordAuthentication  view PasswordAuthentication download PasswordAuthentication.java

java.lang.Object
  extended byjava.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 PasswordAuthentication object 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