org.apache.wiki.util
Class MailUtil.SmtpAuthenticator

java.lang.Object
  extended by javax.mail.Authenticator
      extended by org.apache.wiki.util.MailUtil.SmtpAuthenticator
Enclosing class:
MailUtil

protected static class MailUtil.SmtpAuthenticator
extends javax.mail.Authenticator

Simple Authenticator subclass that authenticates a user to an SMTP server.


Constructor Summary
MailUtil.SmtpAuthenticator(String login, String pass)
          Constructs a new SmtpAuthenticator with a supplied username and password.
 
Method Summary
 javax.mail.PasswordAuthentication getPasswordAuthentication()
          Returns the password used to authenticate to the SMTP server.
 
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

MailUtil.SmtpAuthenticator

public MailUtil.SmtpAuthenticator(String login,
                                  String pass)
Constructs a new SmtpAuthenticator with a supplied username and password.

Parameters:
login - the user name
pass - the password
Method Detail

getPasswordAuthentication

public javax.mail.PasswordAuthentication getPasswordAuthentication()
Returns the password used to authenticate to the SMTP server.

Overrides:
getPasswordAuthentication in class javax.mail.Authenticator
Returns:
PasswordAuthentication


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.