加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090228222235/http://developer.android.com:80/reference/java/net/PasswordAuthentication.html
public final class

PasswordAuthentication

extends Object
java.lang.Object
   ↳ java.net.PasswordAuthentication

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

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