Class DefaultAuthenticator

java.lang.Object
javax.mail.Authenticator
org.apache.commons.mail2.javax.DefaultAuthenticator

public class DefaultAuthenticator extends Authenticator
This is a very simple authentication object that can be used for any transport needing basic userName and password type authentication.
Since:
1.0
  • Constructor Details

    • DefaultAuthenticator

      public DefaultAuthenticator(String userName, String password)
      Default constructor.
      Parameters:
      userName - user name to use when authentication is requested
      password - password to use when authentication is requested
      Since:
      1.0
  • Method Details