public class DefaultAuthenticator extends Authenticator
Constructor and Description |
---|
DefaultAuthenticator(String userName,
String password)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected PasswordAuthentication |
getPasswordAuthentication()
Gets the authentication object that will be used to login to the mail
server.
|
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
public DefaultAuthenticator(String userName, String password)
userName
- user name to use when authentication is requestedpassword
- password to use when authentication is requestedprotected PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in class Authenticator
PasswordAuthentication
object containing the
login information.Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.