Methods Summary |
---|
protected final java.lang.String | getDefaultUserName()
return requestingUserName;
|
protected javax.mail.PasswordAuthentication | getPasswordAuthentication()Called when password authentication is needed. Subclasses should
override the default implementation, which returns null.
Note that if this method uses a dialog to prompt the user for this
information, the dialog needs to block until the user supplies the
information. This method can not simply return after showing the
dialog.
return null;
|
protected final int | getRequestingPort()
return requestingPort;
|
protected final java.lang.String | getRequestingPrompt()
return requestingPrompt;
|
protected final java.lang.String | getRequestingProtocol()Give the protocol that's requesting the connection. Often this
will be based on a URLName.
return requestingProtocol;
|
protected final java.net.InetAddress | getRequestingSite()
return requestingSite;
|
final javax.mail.PasswordAuthentication | requestPasswordAuthentication(java.net.InetAddress addr, int port, java.lang.String protocol, java.lang.String prompt, java.lang.String defaultUserName)Ask the authenticator for a password.
reset();
requestingSite = addr;
requestingPort = port;
requestingProtocol = protocol;
requestingPrompt = prompt;
requestingUserName = defaultUserName;
return getPasswordAuthentication();
|
private void | reset()
requestingSite = null;
requestingPort = -1;
requestingProtocol = null;
requestingPrompt = null;
requestingUserName = null;
|