Package org.bonitasoft.connectors.email
Class SMTPAuthenticator
java.lang.Object
javax.mail.Authenticator
org.bonitasoft.connectors.email.SMTPAuthenticator
public class SMTPAuthenticator
extends javax.mail.Authenticator
The class SMTPAuthenticator represents an object that knows how
to obtain authentication for a network connection with an SMTP server.
- Author:
- chaffotm
-
Constructor Summary
ConstructorsConstructorDescriptionSMTPAuthenticator(String username, String password) Create an SMTPAuthenticator. -
Method Summary
Modifier and TypeMethodDescriptionjavax.mail.PasswordAuthenticationCalled when password authorization is needed.Methods inherited from class javax.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
-
Constructor Details
-
SMTPAuthenticator
Create an SMTPAuthenticator.- Parameters:
username- the user name used for authentication.password- the password used for authentication.
-
-
Method Details
-
getPasswordAuthentication
public javax.mail.PasswordAuthentication getPasswordAuthentication()Called when password authorization is needed.- Overrides:
getPasswordAuthenticationin classjavax.mail.Authenticator
-