org.exist.http.servlets
Class DigestAuthenticator
java.lang.Object
org.exist.http.servlets.DigestAuthenticator
- All Implemented Interfaces:
- Authenticator
public class DigestAuthenticator
- extends java.lang.Object
- implements Authenticator
An Authenticator that uses MD5 Digest Authentication.
- Author:
- wolf
Method Summary |
User |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Try to authenticate the user specified in the HTTP request. |
void |
sendChallenge(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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 |
DigestAuthenticator
public DigestAuthenticator(BrokerPool pool)
authenticate
public User authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.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:
java.io.IOException
sendChallenge
public void sendChallenge(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Description copied from interface:
Authenticator
- Send an WWW-Authenticate header back to client.
- Specified by:
sendChallenge
in interface Authenticator
- Throws:
java.io.IOException
Copyright (C) Wolfgang Meier. All rights reserved.