|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.mail.Authenticator
org.apache.commons.mail.DefaultAuthenticator
public class DefaultAuthenticator
This is a very simple authentication object that can be used for any transport needing basic userName and password type authentication.
| Constructor Summary | |
|---|---|
DefaultAuthenticator(java.lang.String userName,
java.lang.String password)
Default constructor |
|
| Method Summary | |
|---|---|
protected javax.mail.PasswordAuthentication |
getPasswordAuthentication()
Gets the authentication object that will be used to login to the mail server. |
| Methods inherited from class javax.mail.Authenticator |
|---|
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAuthenticator(java.lang.String userName,
java.lang.String password)
userName - user name to use when authentication is requestedpassword - password to use when authentication is requested| Method Detail |
|---|
protected javax.mail.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class javax.mail.AuthenticatorPasswordAuthentication object containing the
login information.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||