Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.net

Class PasswordAuthentication

java.lang.Object
|
+--java.net.PasswordAuthentication


public final class PasswordAuthentication

extends Object

This class serves a container for username/password pairs.

Since:Author:

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.StringgetUserName()

Returns the username associated with this object

Constructor Details

PasswordAuthentication

public PasswordAuthentication(java.lang.String username, char[] password)

Creates a new PasswordAuthentication object from the specified username and password.

Parameters:


Method Details

getPassword

public char[] getPassword()

Returns the password associated with this object

Returns:


getUserName

public String getUserName()

Returns the username associated with this object

Returns: