org.mortbay.jetty.servlet
Class FormAuthenticator
java.lang.Object
org.mortbay.jetty.servlet.FormAuthenticator
- Authenticator, Serializable
public class FormAuthenticator
extends java.lang.Object
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.
$Id: FormAuthenticator.java,v 1.32 2005/08/13 00:01:27 gregwilkins Exp $- Greg Wilkins (gregw)
- dan@greening.name
__J_AUTHENTICATED
public static final String __J_AUTHENTICATED
__J_PASSWORD
public static final String __J_PASSWORD
__J_SECURITY_CHECK
public static final String __J_SECURITY_CHECK
__J_URI
public static final String __J_URI
__J_USERNAME
public static final String __J_USERNAME
authenticate
public Principal authenticate(UserRealm realm,
String pathInContext,
HttpRequest httpRequest,
HttpResponse httpResponse)
throws IOException
Perform form authentication.
Called from SecurityHandler.
- authenticate in interface Authenticator
- UserPrincipal if authenticated else null.
getErrorPage
public String getErrorPage()
getLoginPage
public String getLoginPage()
isLoginOrErrorPage
public boolean isLoginOrErrorPage(String pathInContext)
setErrorPage
public void setErrorPage(String path)
setLoginPage
public void setLoginPage(String path)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.