org.ow2.jonas.mail.internal.factory.lib
Class JAuthenticator

java.lang.Object
  extended by javax.mail.Authenticator
      extended by org.ow2.jonas.mail.internal.factory.lib.JAuthenticator

public class JAuthenticator
extends Authenticator

This class specifies the Authenticator to use in Sesssion.getInstance() method.

Author:
Florent Benoit, Ludovic Bert

Constructor Summary
JAuthenticator(String username, String password)
          Constructor for build a new Authenticator.
 
Method Summary
 PasswordAuthentication getPasswordAuthentication()
          Called when password authentication is needed.
 
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

JAuthenticator

public JAuthenticator(String username,
                      String password)
Constructor for build a new Authenticator.

Parameters:
username - the name of the user
password - the password of the user
Method Detail

getPasswordAuthentication

public PasswordAuthentication getPasswordAuthentication()
Called when password authentication is needed.

Overrides:
getPasswordAuthentication in class Authenticator
Returns:
a password authentication


Copyright © 2010 OW2 Consortium. All Rights Reserved.