toolbox.allegato
Class MailConfig.SimpleMailAuthenticator

Package class diagram package MailConfig.SimpleMailAuthenticator
java.lang.Object
  extended by javax.mail.Authenticator
      extended by toolbox.allegato.MailConfig.SimpleMailAuthenticator
Enclosing class:
MailConfig

 class MailConfig.SimpleMailAuthenticator
extends javax.mail.Authenticator

Authenticator subclass to perform user name/password authentication.


Constructor Summary
MailConfig.SimpleMailAuthenticator(java.lang.String userName, java.lang.String password)
          Construct an authenticator with the given user name and password.
 
Method Summary
 javax.mail.PasswordAuthentication getPasswordAuthentication()
          Return a PassworAuthentication instance using the member user name and password of this Authenticator instance.
 
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

MailConfig.SimpleMailAuthenticator

MailConfig.SimpleMailAuthenticator(java.lang.String userName,
                                   java.lang.String password)
Construct an authenticator with the given user name and password.

Parameters:
userName - String containing the user name.
password - String containing the password.
Method Detail

getPasswordAuthentication

public javax.mail.PasswordAuthentication getPasswordAuthentication()
Return a PassworAuthentication instance using the member user name and password of this Authenticator instance.

Overrides:
getPasswordAuthentication in class javax.mail.Authenticator
Returns:
PasswordAuthentication instance containing user name and password.