org.exist.http.servlets
Interface Authenticator

All Known Implementing Classes:
BasicAuthenticator, DigestAuthenticator

public interface Authenticator

Interface for HTTP authentication methods.

Author:
wolf

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.
 

Method Detail

authenticate

User authenticate(HttpServletRequest request,
                  HttpServletResponse response)
                  throws IOException
Try to authenticate the user specified in the HTTP request.

Parameters:
request -
response -
Returns:
The authenticated user or null if the user isn't autenticated
Throws:
IOException

sendChallenge

void sendChallenge(HttpServletRequest request,
                   HttpServletResponse response)
                   throws IOException
Send an WWW-Authenticate header back to client.

Parameters:
request -
response -
Throws:
IOException


Copyright (C) Wolfgang Meier. All rights reserved.