Package org.apache.wiki.util
Class MailUtil.SmtpAuthenticator
java.lang.Object
javax.mail.Authenticator
org.apache.wiki.util.MailUtil.SmtpAuthenticator
- Enclosing class:
- MailUtil
Simple
Authenticator subclass that authenticates a user to
an SMTP server.-
Constructor Summary
ConstructorsConstructorDescriptionSmtpAuthenticator(String login, String pass) Constructs a new SmtpAuthenticator with a supplied username and password. -
Method Summary
Modifier and TypeMethodDescriptionjavax.mail.PasswordAuthenticationReturns the password used to authenticate to the SMTP server.Methods inherited from class javax.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
-
Constructor Details
-
SmtpAuthenticator
Constructs a new SmtpAuthenticator with a supplied username and password.- Parameters:
login- the usernamepass- the password
-
-
Method Details
-
getPasswordAuthentication
Returns the password used to authenticate to the SMTP server.- Overrides:
getPasswordAuthenticationin classjavax.mail.Authenticator- Returns:
PasswordAuthentication.
-