Top Description Fields Constructors Methods
ch.qos.logback.core.net

public Class LoginAuthenticator

extends Authenticator
Class Inheritance
Imports
jakarta.mail.Authenticator, .PasswordAuthentication

Used by SMTPAppender for authentication purposes.

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
pack-priv
LoginAuthenticator(String username, String password)

Method Summary

Modifier and TypeMethod and Description
public PasswordAuthentication
getPasswordAuthentication()

Overrides jakarta.mail.Authenticator.getPasswordAuthentication.

Called when password authentication is needed.
Inherited from jakarta.mail.Authenticator:
getDefaultUserNamegetRequestingPortgetRequestingPromptgetRequestingProtocolgetRequestingSite

Field Detail

passwordback to summary
pack-priv String password
usernameback to summary
pack-priv String username

Constructor Detail

LoginAuthenticatorback to summary
pack-priv LoginAuthenticator(String username, String password)

Method Detail

getPasswordAuthenticationback to summary
public PasswordAuthentication getPasswordAuthentication()

Overrides jakarta.mail.Authenticator.getPasswordAuthentication.

Doc from jakarta.mail.Authenticator.getPasswordAuthentication.

Called when password authentication is needed. Subclasses should override the default implementation, which returns null.

Note that if this method uses a dialog to prompt the user for this information, the dialog needs to block until the user supplies the information. This method can not simply return after showing the dialog.

Returns:PasswordAuthentication

The PasswordAuthentication collected from the user, or null if none is provided.