Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » web » tomcat » tc4 » authenticator » [javadoc | source]
org.jboss.web.tomcat.tc4.authenticator
public class: FormAuthenticator [javadoc | source]
java.lang.Object
   org.apache.catalina.authenticator.AuthenticatorBase
      org.jboss.web.tomcat.tc4.authenticator.AuthenticatorBase
         org.jboss.web.tomcat.tc4.authenticator.FormAuthenticator
An Authenticator and Valve implementation of FORM BASED Authentication, as described in the Servlet API Specification, Version 2.2.

Differs slightly from the standard Tomcat version in its implementation of the authenticate method.

Field Summary
protected static final  String info    Descriptive information about this implementation. 
Fields inherited from org.jboss.web.tomcat.tc4.authenticator.AuthenticatorBase:
info,  ourSSO
Method from org.jboss.web.tomcat.tc4.authenticator.FormAuthenticator Summary:
authenticate,   getInfo,   matchRequest,   restoreRequest
Methods from org.jboss.web.tomcat.tc4.authenticator.AuthenticatorBase:
associate,   reauthenticateFromSSO,   register,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.web.tomcat.tc4.authenticator.FormAuthenticator Detail:
 public boolean authenticate(HttpRequest request,
    HttpResponse response,
    LoginConfig config) throws 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.

    Differs from the standard Tomcat version in if no Principal has already been authenticated to the request, method still checks if SingleSignOn has set an SSO_ID note on the request. SingleSignOn may do this if the single sign-on session was created by an application using CERT or DIGEST authentication. If it has, the note is removed so that when this authenticator registers its authentication, a new single sign-on session will be created.

 public String getInfo() 
    Return descriptive information about this Valve implementation.
 protected boolean matchRequest(HttpRequest request) 
    Does this request match the saved one (so that it must be the redirect we signalled after successful authentication?
 protected boolean restoreRequest(HttpRequest request,
    Session session) 
    Restore the original request from information stored in our session. If the original request is no longer present (because the session timed out), return false; otherwise, return true.