|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.Authenticator
com.ccg.net.email.AuthenticatorSwing
public class AuthenticatorSwing
A "swing" based email authentication window (to be used in
conjunction with Session objects).
class Example {
public void main(String[] args) {
com.ccg.net.email.AuthenticatorSwing o = new com.ccg.net.email.AuthenticatorSwing();
System.out.println(o);
}
}
| Constructor Summary | |
|---|---|
AuthenticatorSwing()
Construct the authentication object without associating a specific JFrame or JDialog object. |
|
AuthenticatorSwing(JComponent jc,
TagLookup props)
Construct the authentication object associated with a "owning" swing component (which we'll use when presenting the pop-up window). |
|
| Method Summary | |
|---|---|
protected javax.mail.PasswordAuthentication |
getPasswordAuthentication()
One line summary... |
void |
setProperties(TagLookup val)
Set the properties to be used when setting labels, formats, etc (optional). |
| 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 AuthenticatorSwing()
public AuthenticatorSwing(JComponent jc,
TagLookup props)
This method allows one to specify more details about how the dialog box is presented to the user. In particular, if you pass a non-null set of properties, we will honor any of the following properties which are found (its OK if you are missing some, we'll fall back to built in defaults):
It should be noted that the info.format value is passed
through a MessageFormat formatting and
passed the following parameters:
{0} = The mail transport protocol
{1} = The mail host.
{2} = The port on the mail host.
{3} = The "prompt" from the session.
The default value (if you not found) is:
"Connecting to {0} "+
"mail service on host {1},"+
" port {2}.
{3}"
jc - The swing component which is considered the "owner" of this
object (you may pass null in which case we'll create our own).props - A set of properties which can be used to configure the labels
and other strings which are presented to the user (may be null
if you want the system default values) - allows for localization.| Method Detail |
|---|
public void setProperties(TagLookup val)
val - New TagLookup value to assign - may be null if you just want
the built in defaults (but then there isn't much point in
setting them now is there).protected javax.mail.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class javax.mail.Authenticatorarg1 - arg1-describearg2 - arg2-describe
exc - Why thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||