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

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 BasicScheme 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.Authenticator Summary:
authenticate,   authenticateProxy
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.Authenticator Detail:
 public static boolean authenticate(HttpMethod method,
    HttpState state) throws UnsupportedOperationException, HttpException 
Deprecated! use - HttpAuthenticator#authenticate(AuthScheme, HttpMethod, HttpConnection, HttpState)

      Deprecated!
    Add requisite authentication credentials to the given method in the given state if possible.
 public static boolean authenticateProxy(HttpMethod method,
    HttpState state) throws UnsupportedOperationException, HttpException 
Deprecated! use - HttpAuthenticator#authenticateProxy(AuthScheme, HttpMethod, HttpConnection, HttpState)

      Deprecated!
    Add requisite proxy authentication credentials to the given method in the given state if possible.