Apache Tomcat 7.0.23

org.apache.catalina
Interface Authenticator

All Known Implementing Classes:
AuthenticatorBase, BasicAuthenticator, DigestAuthenticator, FormAuthenticator, NonLoginAuthenticator, SpnegoAuthenticator, SSLAuthenticator

public interface Authenticator

An Authenticator is a component (usually a Valve or Container) that provides some sort of authentication service.

Version:
$Id: Authenticator.java 1200156 2011-11-10 05:30:28Z kkolinko $
Author:
Craig R. McClanahan

Method Summary
 boolean authenticate(Request request, HttpServletResponse response, LoginConfig config)
          Authenticate the user making this request, based on the specified login configuration.
 void login(java.lang.String userName, java.lang.String password, Request request)
           
 void logout(Request request)
           
 

Method Detail

authenticate

boolean authenticate(Request request,
                     HttpServletResponse response,
                     LoginConfig config)
                     throws java.io.IOException
Authenticate the user making this request, based on the specified login configuration. Return true if any specified constraint has been satisfied, or false if we have created a response challenge already.

Parameters:
request - Request we are processing
response - Response we are populating
config - Login configuration describing how authentication should be performed
Throws:
java.io.IOException - if an input/output error occurs

login

void login(java.lang.String userName,
           java.lang.String password,
           Request request)
           throws ServletException
Throws:
ServletException

logout

void logout(Request request)
            throws ServletException
Throws:
ServletException

Apache Tomcat 7.0.23

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.