程序包 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected jakarta.mail.PasswordAuthenticationGets the authentication object that will be used to login to the mail server.从类继承的方法 jakarta.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
-
构造器详细资料
-
DefaultAuthenticator
Default constructor- 参数:
userName- user name to use when authentication is requestedpassword- 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
PasswordAuthenticationobject containing the login information. - 从以下版本开始:
- 1.0
-