org.hackystat.sensorbase.mailer
Class SmtpAuthenticator

java.lang.Object
  extended by javax.mail.Authenticator
      extended by org.hackystat.sensorbase.mailer.SmtpAuthenticator

public class SmtpAuthenticator
extends javax.mail.Authenticator

Author:
Martin Imme This class provides access to a username/password combination to the SMTP Server in order to use SFTP with authentication. The password has to be stored in the new properties SMTP_SERVER_USER and SMTP_SERVER_PASS If this property is empty, anonymous access is used.

Constructor Summary
SmtpAuthenticator()
          Constructor to the class.
 
Method Summary
protected  javax.mail.PasswordAuthentication getPasswordAuthentication()
          Created and returns a PasswordAuthentication Object which contains the username/password combination for the authentication process.
 
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
 

Constructor Detail

SmtpAuthenticator

public SmtpAuthenticator()
Constructor to the class.

Method Detail

getPasswordAuthentication

protected javax.mail.PasswordAuthentication getPasswordAuthentication()
Created and returns a PasswordAuthentication Object which contains the username/password combination for the authentication process.

Overrides:
getPasswordAuthentication in class javax.mail.Authenticator
Returns:
PasswordAuthentication the PasswordAuthentication Object
See Also:
Authenticator.getPasswordAuthentication()