org.realtor.rets.util
Class HealthCheck.EMailAuthenticator

java.lang.Object
  |
  +--javax.mail.Authenticator
        |
        +--org.realtor.rets.util.HealthCheck.EMailAuthenticator
Enclosing class:
HealthCheck

private class HealthCheck.EMailAuthenticator
extends javax.mail.Authenticator

This object is used to provide the Authenticator object required by JavaMail when it connects to a SMTP mail server that is secured.


Field Summary
private  java.lang.String _password
           
private  java.lang.String _user
           
 
Fields inherited from class javax.mail.Authenticator
 
Constructor Summary
HealthCheck.EMailAuthenticator()
          Default constructor.
 
Method Summary
private  java.lang.String getPassword()
          Gets the password.
protected  javax.mail.PasswordAuthentication getPasswordAuthentication()
          Gets the PasswordAuthentication object using the user name and password that have been set in this object.
private  java.lang.String getUser()
          Gets the user name.
 void setPassword(java.lang.String newPassword)
          Sets the password.
 void setUser(java.lang.String newUser)
          Sets the user name.
 
Methods inherited from class javax.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_user

private java.lang.String _user

_password

private java.lang.String _password
Constructor Detail

HealthCheck.EMailAuthenticator

public HealthCheck.EMailAuthenticator()
Default constructor.

Method Detail

getUser

private java.lang.String getUser()
Gets the user name.

Returns:
String - The user name.

getPassword

private java.lang.String getPassword()
Gets the password.

Returns:
String - The password.

setUser

public void setUser(java.lang.String newUser)
Sets the user name.


setPassword

public void setPassword(java.lang.String newPassword)
Sets the password.


getPasswordAuthentication

protected javax.mail.PasswordAuthentication getPasswordAuthentication()
Gets the PasswordAuthentication object using the user name and password that have been set in this object.

Overrides:
getPasswordAuthentication in class javax.mail.Authenticator
Returns:
PasswordAuthentication - The default authentication object with the user name and password.


Copyright © 2002 National Association of Realtors - All Rights Reserved.