org.enhydra.shark.toolagent
Class SmtpAuthenticator

java.lang.Object
  extended byjavax.mail.Authenticator
      extended byorg.enhydra.shark.toolagent.SmtpAuthenticator

public class SmtpAuthenticator
extends javax.mail.Authenticator

The class Authenticator represents an object that knows how to obtain authentication for a network connection. Applications use this class by creating a subclass, and registering an instance of that subclass with the system with setDefault(). When authentication is required, the system will invoke a method on the subclass (like getPasswordAuthentication)

Version:
1.0
Author:
Paloma Trigueros Cabezon

Constructor Summary
SmtpAuthenticator()
           
SmtpAuthenticator(java.lang.String login, java.lang.String pass)
           
 
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
 

Constructor Detail

SmtpAuthenticator

public SmtpAuthenticator()

SmtpAuthenticator

public SmtpAuthenticator(java.lang.String login,
                         java.lang.String pass)
Method Detail

getPasswordAuthentication

public javax.mail.PasswordAuthentication getPasswordAuthentication()