org.exist.http.servlets
Class BasicAuthenticator
java.lang.Object
org.exist.http.servlets.BasicAuthenticator
- All Implemented Interfaces:
- Authenticator
public class BasicAuthenticator
- extends Object
- implements Authenticator
- Author:
- wolf
BasicAuthenticator
public BasicAuthenticator(BrokerPool pool)
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.