Package | Description |
---|---|
com.sun.mail.util.logging |
Contains JavaMail™ extensions for
the Java™ platform's core logging
facilities.
|
javax.mail |
The JavaMail™ API
provides classes that model a mail system.
|
Modifier and Type | Class and Description |
---|---|
private static class |
MailHandler.DefaultAuthenticator
Used for storing a password from the LogManager or literal string.
|
Modifier and Type | Field and Description |
---|---|
private Authenticator |
MailHandler.auth
Holds the authenticator required to login to the email server.
|
Modifier and Type | Method and Description |
---|---|
Authenticator |
MailHandler.getAuthenticator()
Gets the Authenticator used to login to the email server.
|
(package private) static Authenticator |
MailHandler.DefaultAuthenticator.of(java.lang.String pass)
Creates an Authenticator for the given password.
|
Modifier and Type | Method and Description |
---|---|
void |
MailHandler.setAuthenticator(Authenticator auth)
Sets the Authenticator used to login to the email server.
|
private void |
MailHandler.setAuthenticator0(Authenticator auth)
A private hook to handle possible future overrides.
|
Modifier and Type | Field and Description |
---|---|
private Authenticator |
Session.authenticator |
Modifier and Type | Method and Description |
---|---|
static Session |
Session.getDefaultInstance(java.util.Properties props,
Authenticator authenticator)
Get the default Session object.
|
static Session |
Session.getInstance(java.util.Properties props,
Authenticator authenticator)
Get a new Session object.
|
Constructor and Description |
---|
Session(java.util.Properties props,
Authenticator authenticator) |