Class BasicAuthenticator
java.lang.Object
jakarta.mail.Authenticator
io.leandev.appfuse.mail.BasicAuthenticator
public class BasicAuthenticator
extends jakarta.mail.Authenticator
SMTP 固定密碼認證器
用於傳統的用戶名/密碼 SMTP 認證方式
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.mail.PasswordAuthenticationMethods inherited from class jakarta.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
-
Constructor Details
-
BasicAuthenticator
public BasicAuthenticator()
-
-
Method Details
-
getPasswordAuthentication
protected jakarta.mail.PasswordAuthentication getPasswordAuthentication()- Overrides:
getPasswordAuthenticationin classjakarta.mail.Authenticator
-