org.blojsom.plugin.email
Class SimpleAuthenticator

java.lang.Object
  extended byjavax.mail.Authenticator
      extended byorg.blojsom.plugin.email.SimpleAuthenticator

public class SimpleAuthenticator
extends javax.mail.Authenticator

Simple authenticator

Since:
blojsom 3.0
Version:
$Id: SimpleAuthenticator.java,v 1.2 2007/01/17 02:35:09 czarneckid Exp $
Author:
David Czarnecki

Constructor Summary
SimpleAuthenticator(java.lang.String username, java.lang.String password)
          Construct a new simple authenticator with the given username and password
 
Method Summary
protected  javax.mail.PasswordAuthentication getPasswordAuthentication()
          Returns a PasswordAuthentication object with username and password
 
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

SimpleAuthenticator

public SimpleAuthenticator(java.lang.String username,
                           java.lang.String password)
Construct a new simple authenticator with the given username and password

Parameters:
username - Username
password - Password
Method Detail

getPasswordAuthentication

protected javax.mail.PasswordAuthentication getPasswordAuthentication()
Returns a PasswordAuthentication object with username and password

Returns:
PasswordAuthentication