javax.mail
Class PasswordAuthentication

java.lang.Object
  extended by javax.mail.PasswordAuthentication

public final class PasswordAuthentication
extends java.lang.Object

Container for a username/password combination.


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.