javax.mail

Class PasswordAuthentication


public final class PasswordAuthentication
extends java.lang.Object

Container for a username/password combination.
Version:
1.4
Author:
Chris Burdess

Constructor Summary

PasswordAuthentication(String userName, String password)
Creates a new password authentication

Method Summary

String
getPassword()
Returns the password.
String
getUserName()
Returns the username.

Constructor Details

PasswordAuthentication

public PasswordAuthentication(String userName,
                              String password)
Creates a new password authentication
Parameters:
userName - the username
password - the password

Method Details

getPassword

public String getPassword()
Returns the password.

getUserName

public String getUserName()
Returns the username.

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved