Android
java.net
public final class

java.net.PasswordAuthentication

java.lang.Object
java.net.PasswordAuthentication

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

Summary

Public Constructors

            PasswordAuthentication(String userName, char[] password)
Creates an instance of a password authentication with a username and password.

Public Methods

          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

Details

Public Constructors

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

Public Methods

public char[] getPassword()

Returns the reference of the password of this class.

Returns

  • char[] the reference of the password

public String getUserName()

Returns the username of this class.

Returns

  • java.lang.String the username of this class
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48