Class DefaultAuthenticator


  • public class DefaultAuthenticator
    extends MailAuthenticator
    Mail Authenticator that supplies username and password
    • Constructor Detail

      • DefaultAuthenticator

        public DefaultAuthenticator​(String username,
                                    String password)
    • Method Detail

      • getPasswordAuthentication

        public javax.mail.PasswordAuthentication getPasswordAuthentication()
        Returns an authenticator object for use in sessions
        Overrides:
        getPasswordAuthentication in class MailAuthenticator