Save This Page
Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » auth » [javadoc | source]
org.apache.commons.httpclient.auth
abstract public class: AuthPolicy [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.auth.AuthPolicy
Authentication policy class. The Authentication policy provides corresponding authentication scheme interfrace for a given type of authorization challenge.

The following specifications are provided:

Field Summary
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.

 
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). 
public static final  String DIGEST    Digest authentication scheme as defined in RFC2617. 
public static final  String BASIC    Basic authentication scheme as defined in RFC2617 (considered inherently insecure, but most widely supported) 
protected static final  Log LOG    Log object. 
Method from org.apache.commons.httpclient.auth.AuthPolicy Summary:
getAuthScheme,   getDefaultAuthPrefs,   registerAuthScheme,   unregisterAuthScheme
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.auth.AuthPolicy Detail:
 public static synchronized AuthScheme getAuthScheme(String id) throws IllegalStateException 
 public static synchronized List getDefaultAuthPrefs() 
 public static synchronized  void registerAuthScheme(String id,
    Class clazz) 
 public static synchronized  void unregisterAuthScheme(String id)