Class EMailAuthenticator


  • public class EMailAuthenticator
    extends javax.mail.Authenticator
    Email User Authentification
    Version:
    $Id: EMailAuthenticator.java,v 1.2 2006/07/30 00:54:36 jjanke Exp $
    Author:
    Jorg Janke
    • Constructor Detail

      • EMailAuthenticator

        public EMailAuthenticator​(String username,
                                  String password)
        Constructor
        Parameters:
        username - user name
        password - user password (ignored if is OAuth2 account)
    • Method Detail

      • getPasswordAuthentication

        protected javax.mail.PasswordAuthentication getPasswordAuthentication()
        Get Password Authentication
        Overrides:
        getPasswordAuthentication in class javax.mail.Authenticator
        Returns:
        Password Authentication
      • isOAuth2

        protected boolean isOAuth2()
        If the authenticator is using OAuth2 account
        Returns:
        boolean
      • toString

        public String toString()
        Get String representation
        Overrides:
        toString in class Object
        Returns:
        info