English | Site Directory

Android - An Open Handset Alliance Project

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()
Answers the reference of the password of this class.
        String  getUserName()
Answers 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()

Answers the reference of the password of this class.

Returns

  • char[] the reference of the password

public String getUserName()

Answers the username of this class.

Returns

  • java.lang.String the username of this class
Build m5-rc15i - 10 Jun 2008 13:54