程序包 com.sh.mail.core

类 DefaultAuthenticator

java.lang.Object
jakarta.mail.Authenticator
com.sh.mail.core.DefaultAuthenticator

public class DefaultAuthenticator extends jakarta.mail.Authenticator

Description: This is a very simple authentication object that can be used for any transport needing basic userName and password type authentication.

Title:首亨软件 - TSS/CRM等

从以下版本开始:
Aug 13, 2012
  • 构造器详细资料

    • DefaultAuthenticator

      public DefaultAuthenticator(String userName, String password)
      Default constructor
      参数:
      userName - user name to use when authentication is requested
      password - password to use when authentication is requested
      从以下版本开始:
      1.0
  • 方法详细资料

    • getPasswordAuthentication

      protected jakarta.mail.PasswordAuthentication getPasswordAuthentication()
      Gets the authentication object that will be used to login to the mail server.
      覆盖:
      getPasswordAuthentication 在类中 jakarta.mail.Authenticator
      返回:
      A PasswordAuthentication object containing the login information.
      从以下版本开始:
      1.0