Save This Page
Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » auth » [javadoc | source]
org.apache.commons.httpclient.auth
public final class: HttpAuthenticator [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.auth.HttpAuthenticator
Deprecated! no - longer used

Utility methods for HTTP authorization and authentication. This class provides utility methods for generating responses to HTTP www and proxy authentication challenges.
A client SHOULD assume that all paths at or deeper than the depth of the last symbolic element in the path field of the Request-URI also are within the protection space specified by the basic realm value of the current challenge. A client MAY preemptively send the corresponding Authorization header with requests for resources in that space without receipt of another challenge from the server. Similarly, when a client sends a request to a proxy, it may reuse a userid and password in the Proxy-Authorization header field without receiving another challenge from the proxy server.

Field Summary
public static final  String WWW_AUTH    The www authenticate challange header. 
public static final  String WWW_AUTH_RESP    The www authenticate response header. 
public static final  String PROXY_AUTH    The proxy authenticate challange header. 
public static final  String PROXY_AUTH_RESP    The proxy authenticate response header. 
Method from org.apache.commons.httpclient.auth.HttpAuthenticator Summary:
authenticate,   authenticateDefault,   authenticateProxy,   authenticateProxyDefault,   selectAuthScheme
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.auth.HttpAuthenticator Detail:
 public static boolean authenticate(AuthScheme authscheme,
    HttpMethod method,
    HttpConnection conn,
    HttpState state) throws AuthenticationException 
Deprecated! use - AuthScheme

      Deprecated!
    Attempt to provide requisite authentication credentials to the given method in the given context using the given authentication scheme.
 public static boolean authenticateDefault(HttpMethod method,
    HttpConnection conn,
    HttpState state) throws AuthenticationException 
Deprecated! use - AuthScheme

      Deprecated!
    Attempt to provide default authentication credentials to the given method in the given context using basic authentication scheme.
 public static boolean authenticateProxy(AuthScheme authscheme,
    HttpMethod method,
    HttpConnection conn,
    HttpState state) throws AuthenticationException 
Deprecated! use - AuthScheme

      Deprecated!
    Attempt to provide requisite proxy authentication credentials to the given method in the given context using the given authentication scheme.
 public static boolean authenticateProxyDefault(HttpMethod method,
    HttpConnection conn,
    HttpState state) throws AuthenticationException 
Deprecated! use - AuthScheme

      Deprecated!
    Attempt to provide default proxy authentication credentials to the given method in the given context using basic authentication scheme.
 public static AuthScheme selectAuthScheme(Header[] challenges) throws MalformedChallengeException 
Deprecated! Use - AuthChallengeParser#parseChallenges(Header[]) and AuthPolicy#getAuthScheme(String)

      Deprecated!
    Chooses the strongest authentication scheme supported from the array of authentication challenges. Currently only NTLM, Digest, Basic schemes are recognized. The NTLM scheme is considered the strongest and is preferred to all others. The Digest scheme is preferred to the Basic one which provides no encryption for credentials. The Basic scheme is used only if it is the only one supported.