test.mock.mail
Class MockAuthenticator

java.lang.Object
  extended by javax.mail.Authenticator
      extended by test.mock.mail.MockAuthenticator

public class MockAuthenticator
extends javax.mail.Authenticator


Constructor Summary
MockAuthenticator(String username, String password)
           
 
Method Summary
 String getPassword()
           
 javax.mail.PasswordAuthentication getPasswordAuthentication()
           
 String getUsername()
           
 
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

MockAuthenticator

public MockAuthenticator(String username,
                         String password)
Method Detail

getPasswordAuthentication

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

getUsername

public String getUsername()

getPassword

public String getPassword()


Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.