public final class

PasswordAuthentication

extends Object
java.lang.Object
   ↳ com.google.code.javax.mail.PasswordAuthentication

Class Overview

The class PasswordAuthentication is a data holder that is used by Authenticator. It is simply a repository for a user name and a password.

See Also
  • java.net.PasswordAuthentication
  • javax.mail.Authenticator
  • javax.mail.Authenticator#getPasswordAuthentication()

Summary

Fields
private String password
private String userName
Public Constructors
PasswordAuthentication(String userName, String password)
Initialize a new PasswordAuthentication
Public Methods
String getPassword()
String getUserName()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private String password

private String userName

Public Constructors

public PasswordAuthentication (String userName, String password)

Initialize a new PasswordAuthentication

Parameters
userName The user name
password The user's password

Public Methods

public String getPassword ()

Returns
  • the password

public String getUserName ()

Returns
  • the user name