Class EMailAuthenticator

java.lang.Object
javax.mail.Authenticator
org.compiere.util.EMailAuthenticator

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

    • EMailAuthenticator

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

    • getPasswordAuthentication

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

      protected MAuthorizationAccount getAuthorizationAccount()
      Get OAuth2 Authorization Account
      Returns:
      Authorization Account
    • 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