org.apache.commons.httpclient.auth
Class AuthPolicy
java.lang.Object
org.apache.commons.httpclient.auth.AuthPolicy
public abstract class AuthPolicy
extends java.lang.Object
Authentication policy class. The Authentication policy provides corresponding
authentication scheme interfrace for a given type of authorization challenge.
The following specifications are provided:
- Basic: Basic authentication scheme as defined in RFC2617
(considered inherently insecure, but most widely supported)
- Digest: Digest authentication scheme as defined in RFC2617
- NTLM: The NTLM scheme is a proprietary Microsoft Windows
Authentication protocol (considered to be the most secure among
currently supported authentication schemes)
static String | AUTH_SCHEME_PRIORITY - The key used to look up the list of IDs of supported
authentication schemes in their order of preference.
|
static String | BASIC - Basic authentication scheme as defined in RFC2617 (considered inherently
insecure, but most widely supported)
|
static String | DIGEST - Digest authentication scheme as defined in RFC2617.
|
protected static Log | LOG - Log object.
|
static String | NTLM - The NTLM scheme is a proprietary Microsoft Windows Authentication
protocol (considered to be the most secure among currently supported
authentication schemes).
|
AUTH_SCHEME_PRIORITY
public static final String AUTH_SCHEME_PRIORITY
The key used to look up the list of IDs of supported
authentication schemes
in their order of preference. The scheme IDs are
stored in a
java.util.Collection
as
java.lang.String
s.
If several schemes are returned in the
WWW-Authenticate
or
Proxy-Authenticate header, this parameter defines which
authentication schemes
takes precedence over others.
The first item in the collection represents the most preferred
authentication scheme
, the last item represents the ID
of the least preferred one.
BASIC
public static final String BASIC
Basic authentication scheme as defined in RFC2617 (considered inherently
insecure, but most widely supported)
DIGEST
public static final String DIGEST
Digest authentication scheme as defined in RFC2617.
LOG
protected static final Log LOG
Log object.
NTLM
public static final String NTLM
The NTLM scheme is a proprietary Microsoft Windows Authentication
protocol (considered to be the most secure among currently supported
authentication schemes).
getAuthScheme
public static AuthScheme getAuthScheme(String id)
throws IllegalStateException
getDefaultAuthPrefs
public static List getDefaultAuthPrefs()
registerAuthScheme
public static void registerAuthScheme(String id,
Class clazz)
id
- the identifier for this schemeclazz
- the class to register
unregisterAuthScheme
public static void unregisterAuthScheme(String id)
id
- the ID of the class to unregister
Copyright (c) 1999-2005 - Apache Software Foundation