public class UrlAuthenticatorDialog extends java.net.Authenticator implements HTTPCredentialsProvider
or for org.apache.http authentication: httpclient.getParams().setParameter( CredentialsProvider.PROVIDER, new UrlAuthenticatorDialog( null));
| Modifier and Type | Field and Description |
|---|---|
HTTPSession |
session |
| Constructor and Description |
|---|
UrlAuthenticatorDialog(javax.swing.JFrame parent)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
org.apache.http.auth.Credentials |
getCredentials(org.apache.http.auth.AuthScope scope) |
protected java.net.PasswordAuthentication |
getPasswordAuthentication() |
void |
remove(org.apache.http.HttpHost host) |
void |
setCredentials(org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials cred) |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefaultpublic HTTPSession session
public UrlAuthenticatorDialog(javax.swing.JFrame parent)
parent - JFramepublic void clear()
clear in interface org.apache.http.client.CredentialsProviderpublic void remove(org.apache.http.HttpHost host)
remove in interface HTTPCredentialsProviderpublic void setCredentials(org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials cred)
setCredentials in interface org.apache.http.client.CredentialsProviderprotected java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class java.net.Authenticatorpublic org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope scope)
getCredentials in interface org.apache.http.client.CredentialsProvider