org.wcb.common
Class EmailAuthenticator
java.lang.Object
javax.mail.Authenticator
org.wcb.common.EmailAuthenticator
- public class EmailAuthenticator
- extends javax.mail.Authenticator
Copyright (C) 1999 Walter Bogaardt
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
EmailAuthenticator.java
Created on February 2, 2004, 7:59 PM
- Author:
- wbogaardt
Project: Home Automation Interface
Filename: $Id: EmailAuthenticator.java,v 1.2 2004/02/27 01:29:53 wbogaardt Exp $
Abstract: This allows email accounts that need authentication to log.
$Log: EmailAuthenticator.java,v $
Revision 1.2 2004/02/27 01:29:53 wbogaardt
modified classes so they conform to Checkstyle format in readability
Revision 1.1 2004/02/02 23:43:34 wbogaardt
Email authentication wrapper
Constructor Summary |
EmailAuthenticator(java.lang.String username,
java.lang.String password)
This class basically extends the Authenticator class
so that wen we du a getPasswordAuthentication it will return
the PasswordAuthentication object. |
Method Summary |
javax.mail.PasswordAuthentication |
getPasswordAuthentication()
This implementation returns the user name and password
as the PasswordAuthentication object |
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 |
EmailAuthenticator
public EmailAuthenticator(java.lang.String username,
java.lang.String password)
- This class basically extends the Authenticator class
so that wen we du a getPasswordAuthentication it will return
the PasswordAuthentication object.
- Parameters:
username
- The user namepassword
- The user password
getPasswordAuthentication
public javax.mail.PasswordAuthentication getPasswordAuthentication()
- This implementation returns the user name and password
as the PasswordAuthentication object
- Returns:
- user name and password for email authentication.
Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.