Package com.saperion.common.mail
Class UsernamePasswordAuthenticator
- java.lang.Object
-
- javax.mail.Authenticator
-
- com.saperion.common.mail.UsernamePasswordAuthenticator
-
public class UsernamePasswordAuthenticator extends javax.mail.AuthenticatorA username-password
Authenticatorfor 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 newUsernamePasswordAuthenticatorwith the specified user name and password
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.PasswordAuthenticationgetPasswordAuthentication()
-
-
-
Constructor Detail
-
UsernamePasswordAuthenticator
public UsernamePasswordAuthenticator(java.lang.String userName, java.lang.String password)Creates a newUsernamePasswordAuthenticatorwith the specified user name and password- Parameters:
userName- user name for authenticationpassword- password for authentication
-
-