? auth.patch ? docs.patch ? images/._httpclient_logo.png Index: authentication.xml =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/xdocs/authentication.xml,v retrieving revision 1.12 diff -u -r1.12 authentication.xml --- authentication.xml 29 Jun 2004 20:16:15 -0000 1.12 +++ authentication.xml 5 Sep 2004 20:20:10 -0000 @@ -15,6 +15,30 @@

HttpClient supports three different types of http authentication schemes: Basic, Digest and NTLM. These can be used to authenticate with http servers or proxies.

+ + +
@@ -190,14 +214,30 @@ // This will exclude the NTLM authentication scheme client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs); + +

HttpClient natively supports basic, digest, and NTLM authentication. It also contains + a mechanism to plugin additional custom authentication schemes via the + AuthScheme interface. + The following steps are required to make use of a custom authentication scheme. +

    +
  1. Implement the AuthScheme interface.
  2. +
  3. Register the custom AuthScheme with + AuthPolicy.registerAuthScheme().
  4. +
  5. Include the custom AuthScheme in the AuthPolicy.AUTH_SCHEME_PRIORITY preference + (see the Alternate authentication section).
  6. +
+

+
- -
-

There is an example - of basic authentication available in the - example directory in CVS. -

-
+
+

There are a number of authentication examples in the example directory, including: +

+

+

Some authentication schemes may use cryptographic algorithms. It is recommended to include the