Package org.compiere.util
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MAuthorizationAccount
Get OAuth2 Authorization Accountprotected javax.mail.PasswordAuthentication
Get Password Authenticationprotected boolean
isOAuth2()
If the authenticator is using OAuth2 accounttoString()
Get String representationMethods inherited from class javax.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
-
Constructor Details
-
EMailAuthenticator
Constructor- Parameters:
username
- user namepassword
- user password (ignored if is OAuth2 account)
-
-
Method Details
-
getPasswordAuthentication
protected javax.mail.PasswordAuthentication getPasswordAuthentication()Get Password Authentication- Overrides:
getPasswordAuthentication
in classjavax.mail.Authenticator
- Returns:
- Password Authentication
-
getAuthorizationAccount
Get OAuth2 Authorization Account- Returns:
- Authorization Account
-
isOAuth2
protected boolean isOAuth2()If the authenticator is using OAuth2 account- Returns:
- boolean
-
toString
Get String representation
-