Class AMUserNamePasswordAuthenticator


  • public class AMUserNamePasswordAuthenticator
    extends jakarta.mail.Authenticator
    • Constructor Detail

      • AMUserNamePasswordAuthenticator

        public AMUserNamePasswordAuthenticator​(String user,
                                               String password)
        Public constructor that takes user name and user password.
        Parameters:
        user - The user name
        password - The user password
    • Method Detail

      • getPasswordAuthentication

        protected jakarta.mail.PasswordAuthentication getPasswordAuthentication()
        Gets a PasswordAuthentication object
        Overrides:
        getPasswordAuthentication in class jakarta.mail.Authenticator
        Returns:
        An PasswordAuthentication object based on the user name and password passed in from the constructor.