Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.jetty.servlet
Class FormAuthenticator  view FormAuthenticator download FormAuthenticator.java

java.lang.Object
  extended byorg.mortbay.jetty.servlet.FormAuthenticator
All Implemented Interfaces:
org.mortbay.http.Authenticator, java.io.Serializable

public class FormAuthenticator
extends java.lang.Object
implements org.mortbay.http.Authenticator

FORM Authentication Authenticator. The HTTP Session is used to store the authentication status of the user, which can be distributed. If the realm implements SSORealm, SSO is supported.

Version:
$Id: FormAuthenticator.java,v 1.26 2003/10/12 11:58:33 gregwilkins Exp $

Nested Class Summary
private static class FormAuthenticator.FormCredential
          FORM Authentication credential holder.
 
Field Summary
static java.lang.String __J_AUTHENTICATED
           
static java.lang.String __J_PASSWORD
           
static java.lang.String __J_SECURITY_CHECK
           
static java.lang.String __J_URI
           
static java.lang.String __J_USERNAME
           
private  java.lang.String _formErrorPage
           
private  java.lang.String _formErrorPath
           
private  java.lang.String _formLoginPage
           
private  java.lang.String _formLoginPath
           
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
FormAuthenticator()
           
 
Method Summary
 java.security.Principal authenticate(org.mortbay.http.UserRealm realm, java.lang.String pathInContext, org.mortbay.http.HttpRequest httpRequest, org.mortbay.http.HttpResponse httpResponse)
          Perform form authentication.
 java.lang.String getAuthMethod()
           
 java.lang.String getErrorPage()
           
 java.lang.String getLoginPage()
           
 void setErrorPage(java.lang.String path)
           
 void setLoginPage(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.commons.logging.Log log

__J_URI

public static final java.lang.String __J_URI
See Also:
Constant Field Values

__J_AUTHENTICATED

public static final java.lang.String __J_AUTHENTICATED
See Also:
Constant Field Values

__J_SECURITY_CHECK

public static final java.lang.String __J_SECURITY_CHECK
See Also:
Constant Field Values

__J_USERNAME

public static final java.lang.String __J_USERNAME
See Also:
Constant Field Values

__J_PASSWORD

public static final java.lang.String __J_PASSWORD
See Also:
Constant Field Values

_formErrorPage

private java.lang.String _formErrorPage

_formErrorPath

private java.lang.String _formErrorPath

_formLoginPage

private java.lang.String _formLoginPage

_formLoginPath

private java.lang.String _formLoginPath
Constructor Detail

FormAuthenticator

public FormAuthenticator()
Method Detail

getAuthMethod

public java.lang.String getAuthMethod()
Specified by:
getAuthMethod in interface org.mortbay.http.Authenticator

setLoginPage

public void setLoginPage(java.lang.String path)

getLoginPage

public java.lang.String getLoginPage()

setErrorPage

public void setErrorPage(java.lang.String path)

getErrorPage

public java.lang.String getErrorPage()

authenticate

public java.security.Principal authenticate(org.mortbay.http.UserRealm realm,
                                            java.lang.String pathInContext,
                                            org.mortbay.http.HttpRequest httpRequest,
                                            org.mortbay.http.HttpResponse httpResponse)
                                     throws java.io.IOException
Perform form authentication. Called from SecurityHandler.

Specified by:
authenticate in interface org.mortbay.http.Authenticator