From d715ace6293ce836385e41182382e47b5b49d549 Mon Sep 17 00:00:00 2001
From: Oleg Kalnichevski
* This interface represents an abstract challenge-response oriented
* authentication scheme.
- *
* An authentication scheme should be able to support the following
* functions:
*
- *
- *
- * Authentication schemes may ignore method name and URI parameters - * if they are not relevant for the given authentication mechanism - *
** Authentication schemes may be stateful involving a series of - * challenge-response exchanges - *
- * + * challenge-response exchanges. * * @since 4.0 */ diff --git a/httpclient/src/main/java/org/apache/http/auth/AuthSchemeFactory.java b/httpclient/src/main/java/org/apache/http/auth/AuthSchemeFactory.java index 59e59f6b4..73e08046e 100644 --- a/httpclient/src/main/java/org/apache/http/auth/AuthSchemeFactory.java +++ b/httpclient/src/main/java/org/apache/http/auth/AuthSchemeFactory.java @@ -34,12 +34,19 @@ package org.apache.http.auth; import org.apache.http.params.HttpParams; /** - * + * Factory for {@link AuthScheme} implementations. * * @since 4.0 */ public interface AuthSchemeFactory { + /** + * Creates an instance of {@link AuthScheme} using given HTTP parameters. + * + * @param params HTTP parameters. + * + * @return auth scheme. + */ AuthScheme newInstance(HttpParams params); } diff --git a/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java b/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java index bb8983865..314c79206 100644 --- a/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java +++ b/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java @@ -43,11 +43,8 @@ import org.apache.http.params.HttpParams; /** * Authentication scheme registry that can be used to obtain the corresponding - * authentication scheme implementation for a given type of authorization challenge. - * - * - * - * @version $Revision$ + * authentication scheme implementation for a given type of authorization challenge. + * * @since 4.0 */ @ThreadSafe diff --git a/httpclient/src/main/java/org/apache/http/auth/Credentials.java b/httpclient/src/main/java/org/apache/http/auth/Credentials.java index 62e9fb3ec..06da42ac3 100644 --- a/httpclient/src/main/java/org/apache/http/auth/Credentials.java +++ b/httpclient/src/main/java/org/apache/http/auth/Credentials.java @@ -33,10 +33,9 @@ package org.apache.http.auth; import java.security.Principal; /** - * User name and password based authentication credentials. - * - * - * @version $Revision$ $Date$ + * This interface represents a set of credentials consisting of a security + * principal and a secret (password) that can be used to establish user + * identity * * @since 4.0 */ diff --git a/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java b/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java index 88fdd2f3f..c022cab49 100644 --- a/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java +++ b/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java @@ -37,10 +37,11 @@ import net.jcip.annotations.Immutable; import org.apache.http.util.LangUtils; -/** {@link Credentials} specific to the Windows platform. - * +/** + * {@link Credentials} implementation for Microsoft Windows platforms that includes + * Windows specific attributes such as name of the domain the user belongs to. * - * @since 2.0 + * @since 4.0 */ @Immutable public class NTCredentials implements Credentials { diff --git a/httpclient/src/main/java/org/apache/http/auth/NTUserPrincipal.java b/httpclient/src/main/java/org/apache/http/auth/NTUserPrincipal.java index 872ca6318..80bb720fa 100644 --- a/httpclient/src/main/java/org/apache/http/auth/NTUserPrincipal.java +++ b/httpclient/src/main/java/org/apache/http/auth/NTUserPrincipal.java @@ -37,8 +37,8 @@ import net.jcip.annotations.Immutable; import org.apache.http.util.LangUtils; -/** NT (MS Windows specific) user principal used for HTTP authentication - * +/** + * Microsoft Windows specific user principal implementation. * * @since 4.0 */ diff --git a/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java b/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java index 3987bbd22..6a01cb96c 100644 --- a/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java +++ b/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java @@ -37,11 +37,8 @@ import net.jcip.annotations.Immutable; import org.apache.http.util.LangUtils; /** - * Username and password {@link Credentials} - * - * - * @version $Revision$ $Date$ - * + * Simple {@link Credentials} implementation based on a user name / password + * pair. * * @since 4.0 */ diff --git a/httpclient/src/main/java/org/apache/http/auth/package.html b/httpclient/src/main/java/org/apache/http/auth/package.html index 8bd6c1bfa..c1d6a3979 100644 --- a/httpclient/src/main/java/org/apache/http/auth/package.html +++ b/httpclient/src/main/java/org/apache/http/auth/package.html @@ -34,8 +34,6 @@ --> -The API for client-side HTTP authentication against a server, -commonly referred to as HttpAuth. - +The API for client-side HTTP authentication against a server.