Package | Description |
---|---|
org.apache.commons.httpclient |
Classes and interfaces supporting the client side of the HTTP protocol.
|
org.apache.commons.httpclient.auth |
Provides implementation of various authentication schemes as well as
utility classes that can be used to authenticate HTTP requests.
|
Modifier and Type | Class and Description |
---|---|
class |
NTCredentials
Credentials for use with the NTLM authentication scheme which requires additional
information. |
class |
UsernamePasswordCredentials
Username and password
Credentials . |
Modifier and Type | Method and Description |
---|---|
Credentials |
HttpState.getCredentials(AuthScope authscope)
Get the
credentials for the given authentication scope. |
Credentials |
HttpState.getCredentials(java.lang.String realm,
java.lang.String host)
Deprecated.
use #getCredentials(AuthScope)
|
Credentials |
HttpState.getProxyCredentials(AuthScope authscope)
Get the
proxy credentials for the given authentication scope. |
Credentials |
HttpState.getProxyCredentials(java.lang.String realm,
java.lang.String proxyHost)
Deprecated.
use #getProxyCredentials(AuthScope)
|
Modifier and Type | Method and Description |
---|---|
void |
HttpState.setCredentials(AuthScope authscope,
Credentials credentials)
Sets the
credentials for the given authentication
scope. |
void |
HttpState.setCredentials(java.lang.String realm,
java.lang.String host,
Credentials credentials)
Deprecated.
use #setCredentials(AuthScope, Credentials)
|
void |
HttpState.setProxyCredentials(AuthScope authscope,
Credentials credentials)
Sets the
proxy credentials for the given authentication
realm. |
void |
HttpState.setProxyCredentials(java.lang.String realm,
java.lang.String proxyHost,
Credentials credentials)
Deprecated.
use #setProxyCredentials(AuthScope, Credentials)
|
Modifier and Type | Method and Description |
---|---|
Credentials |
CredentialsProvider.getCredentials(AuthScheme scheme,
java.lang.String host,
int port,
boolean proxy)
Requests additional
authentication credentials . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
AuthScheme.authenticate(Credentials credentials,
HttpMethod method)
Produces an authorization string for the given set of
Credentials . |
java.lang.String |
NTLMScheme.authenticate(Credentials credentials,
HttpMethod method)
Produces NTLM authorization string for the given set of
Credentials . |
java.lang.String |
DigestScheme.authenticate(Credentials credentials,
HttpMethod method)
Produces a digest authorization string for the given set of
Credentials , method name and URI. |
java.lang.String |
BasicScheme.authenticate(Credentials credentials,
HttpMethod method)
Produces basic authorization string for the given set of
Credentials . |
java.lang.String |
AuthScheme.authenticate(Credentials credentials,
java.lang.String method,
java.lang.String uri)
Deprecated.
Use
AuthScheme.authenticate(Credentials, HttpMethod)
Produces an authorization string for the given set of Credentials ,
method name and URI using the given authentication scheme in response to
the actual authorization challenge. |
java.lang.String |
NTLMScheme.authenticate(Credentials credentials,
java.lang.String method,
java.lang.String uri)
Deprecated.
|
java.lang.String |
DigestScheme.authenticate(Credentials credentials,
java.lang.String method,
java.lang.String uri)
Deprecated.
|
java.lang.String |
BasicScheme.authenticate(Credentials credentials,
java.lang.String method,
java.lang.String uri)
Deprecated.
|
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.