javax.mail
Class PasswordAuthentication

java.lang.Object
  extended byjavax.mail.PasswordAuthentication

public final class PasswordAuthentication
extends java.lang.Object

Container for a username/password combination.

Version:
1.3
Author:
Chris Burdess

Constructor Summary
PasswordAuthentication(java.lang.String userName, java.lang.String password)
          Creates a new password authentication
 
Method Summary
 java.lang.String getPassword()
          Returns the password.
 java.lang.String getUserName()
          Returns the username.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordAuthentication

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

Parameters:
userName - the username
password - the password
Method Detail

getUserName

public java.lang.String getUserName()
Returns the username.


getPassword

public java.lang.String getPassword()
Returns the password.



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