org.ow2.jonas.mail.internal.factory.lib
Class JAuthenticator
java.lang.Object
javax.mail.Authenticator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAuthenticator
public JAuthenticator(String username,
String password)
- Constructor for build a new
Authenticator
.
- Parameters:
username
- the name of the userpassword
- the password of the user
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.