Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.http
Class BasicAuthenticator  view BasicAuthenticator download BasicAuthenticator.java

java.lang.Object
  extended byorg.mortbay.http.BasicAuthenticator
All Implemented Interfaces:
Authenticator, java.io.Serializable

public class BasicAuthenticator
extends java.lang.Object
implements Authenticator

BASIC authentication.

Version:
$Id: BasicAuthenticator.java,v 1.13 2003/10/12 11:58:32 gregwilkins Exp $

Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
BasicAuthenticator()
           
 
Method Summary
 java.security.Principal authenticate(UserRealm realm, java.lang.String pathInContext, HttpRequest request, HttpResponse response)
          Authenticate.
 java.lang.String getAuthMethod()
           
 void sendChallenge(UserRealm realm, HttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

BasicAuthenticator

public BasicAuthenticator()
Method Detail

authenticate

public java.security.Principal authenticate(UserRealm realm,
                                            java.lang.String pathInContext,
                                            HttpRequest request,
                                            HttpResponse response)
                                     throws java.io.IOException
Description copied from interface: Authenticator
Authenticate.

Specified by:
authenticate in interface Authenticator

getAuthMethod

public java.lang.String getAuthMethod()
Specified by:
getAuthMethod in interface Authenticator

sendChallenge

public void sendChallenge(UserRealm realm,
                          HttpResponse response)
                   throws java.io.IOException