Class LoginAuthenticator


  • public class LoginAuthenticator
    extends javax.mail.Authenticator
    Used by SMTPAppender for authentication purposes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String password  
      (package private) java.lang.String username  
    • Constructor Summary

      Constructors 
      Constructor Description
      LoginAuthenticator​(java.lang.String username, java.lang.String password)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.mail.PasswordAuthentication getPasswordAuthentication()  
      • Methods inherited from class javax.mail.Authenticator

        getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • username

        java.lang.String username
      • password

        java.lang.String password
    • Constructor Detail

      • LoginAuthenticator

        LoginAuthenticator​(java.lang.String username,
                           java.lang.String password)
    • Method Detail

      • getPasswordAuthentication

        public javax.mail.PasswordAuthentication getPasswordAuthentication()
        Overrides:
        getPasswordAuthentication in class javax.mail.Authenticator