jodd.mail
Class SimpleAuthenticator

java.lang.Object
  extended by javax.mail.Authenticator
      extended by jodd.mail.SimpleAuthenticator

public class SimpleAuthenticator
extends javax.mail.Authenticator

Performs simple authentication when the server requires it.


Field Summary
protected  java.lang.String password
           
protected  java.lang.String username
           
 
Constructor Summary
SimpleAuthenticator(java.lang.String username, java.lang.String password)
           
 
Method Summary
 javax.mail.PasswordAuthentication getPasswordAuthentication()
           
 
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
 

Field Detail

username

protected final java.lang.String username

password

protected final java.lang.String password
Constructor Detail

SimpleAuthenticator

public SimpleAuthenticator(java.lang.String username,
                           java.lang.String password)
Method Detail

getPasswordAuthentication

public javax.mail.PasswordAuthentication getPasswordAuthentication()
Overrides:
getPasswordAuthentication in class javax.mail.Authenticator


Copyright © 2003-2013 Jodd Team