org.exist.http.servlets
Class DigestAuthenticator

java.lang.Object
  extended by org.exist.http.servlets.DigestAuthenticator
All Implemented Interfaces:
Authenticator

public class DigestAuthenticator
extends Object
implements Authenticator

An Authenticator that uses MD5 Digest Authentication.

Author:
wolf

Constructor Summary
DigestAuthenticator(BrokerPool pool)
           
 
Method Summary
 User authenticate(HttpServletRequest request, HttpServletResponse response)
          Try to authenticate the user specified in the HTTP request.
 void sendChallenge(HttpServletRequest request, HttpServletResponse response)
          Send an WWW-Authenticate header back to client.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestAuthenticator

public DigestAuthenticator(BrokerPool pool)
Method Detail

authenticate

public User authenticate(HttpServletRequest request,
                         HttpServletResponse response)
                  throws IOException
Description copied from interface: Authenticator
Try to authenticate the user specified in the HTTP request.

Specified by:
authenticate in interface Authenticator
Returns:
The authenticated user or null if the user isn't autenticated
Throws:
IOException

sendChallenge

public void sendChallenge(HttpServletRequest request,
                          HttpServletResponse response)
                   throws IOException
Description copied from interface: Authenticator
Send an WWW-Authenticate header back to client.

Specified by:
sendChallenge in interface Authenticator
Throws:
IOException


Copyright (C) Wolfgang Meier. All rights reserved.