Package com.saperion.common.mail
Class UsernamePasswordAuthenticator
java.lang.Object
javax.mail.Authenticator
com.saperion.common.mail.UsernamePasswordAuthenticator
public class UsernamePasswordAuthenticator
extends javax.mail.Authenticator
A username-password Authenticator for SMTP authentication.
This implementation is not synchronized. If used by different threads concurrently, external synchronization is necessary.
- Author:
- sts
-
Constructor Summary
ConstructorsConstructorDescriptionUsernamePasswordAuthenticator(String userName, String password) Creates a newUsernamePasswordAuthenticatorwith the specified user name and password -
Method Summary
Methods inherited from class javax.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
-
Constructor Details
-
UsernamePasswordAuthenticator
Creates a newUsernamePasswordAuthenticatorwith the specified user name and password- Parameters:
userName- user name for authenticationpassword- password for authentication
-
-
Method Details
-
getPasswordAuthentication
public javax.mail.PasswordAuthentication getPasswordAuthentication()- Overrides:
getPasswordAuthenticationin classjavax.mail.Authenticator
-