javax.mail

Class PasswordAuthentication

public final class PasswordAuthentication extends Object

Container for a username/password combination.

Version: 1.3

Author: Chris Burdess

Constructor Summary
PasswordAuthentication(String userName, String password)
Creates a new password authentication
Method Summary
StringgetPassword()
Returns the password.
StringgetUserName()
Returns the username.

Constructor Detail

PasswordAuthentication

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

Parameters: userName the username password the password

Method Detail

getPassword

public String getPassword()
Returns the password.

getUserName

public String getUserName()
Returns the username.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved