public class UrlAuthenticatorDialog
extends java.net.Authenticator
implements org.apache.http.client.CredentialsProvider
or for org.apache.http authentication: httpclient.getParams().setParameter( CredentialsProvider.PROVIDER, new UrlAuthenticatorDialog( null));
| 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 |
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 UrlAuthenticatorDialog(javax.swing.JFrame parent)
parent - JFramepublic void clear()
clear in interface org.apache.http.client.CredentialsProviderpublic 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