public class UrlAuthenticatorDialog extends UrlAuthenticator
This class can handle URL password authentication whenever a password
protected URL is encountered. All the program needs to do is call
UrlAuthenticatorDialog.createDefaultAuthenticator(Component)
and
after that all URL's requiring password authentication will cause a dialog
popup to appear as needed.
createDefaultAuthenticator(Component)
Constructor and Description |
---|
UrlAuthenticatorDialog(java.awt.Component component)
Create the URL authenticator dialog.
|
UrlAuthenticatorDialog(java.awt.Component component,
java.lang.String titleStr)
Create the URL authenticator dialog.
|
Modifier and Type | Method and Description |
---|---|
static UrlAuthenticatorDialog |
createDefaultAuthenticator(java.awt.Component component)
Create the URL authenticator dialog and set it as the default
authenticator.
|
static PasswordAuthenticator |
createPasswordAuthenticator(java.awt.Component component,
java.lang.String titleStr)
Create a password authenticator.
|
getPasswordAuthentication, setDefaultAuthenticator
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
public UrlAuthenticatorDialog(java.awt.Component component)
component
- the parent component for the password dialog.public UrlAuthenticatorDialog(java.awt.Component component, java.lang.String titleStr)
component
- the parent component for the password dialog.titleStr
- the title string for popup window.public static UrlAuthenticatorDialog createDefaultAuthenticator(java.awt.Component component)
component
- the parent component for the password dialog.public static PasswordAuthenticator createPasswordAuthenticator(java.awt.Component component, java.lang.String titleStr)
component
- the parent component for the password dialog.titleStr
- the title string for popup window.