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
Constructors Constructor Description UsernamePasswordAuthenticator(java.lang.String userName, java.lang.String password)
Creates a newUsernamePasswordAuthenticator
with the specified user name and password
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.PasswordAuthentication
getPasswordAuthentication()
-
-
-
Constructor Detail
-
UsernamePasswordAuthenticator
public UsernamePasswordAuthenticator(java.lang.String userName, java.lang.String password)
Creates a newUsernamePasswordAuthenticator
with the specified user name and password- Parameters:
userName
- user name for authenticationpassword
- password for authentication
-
-