org.mortbay.jetty.security
public class FormAuthenticator extends java.lang.Object implements Authenticator
| Modifier and Type | Field and Description |
|---|---|
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 |
| Constructor and Description |
|---|
FormAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
java.security.Principal |
authenticate(UserRealm realm,
java.lang.String pathInContext,
Request request,
Response response)
Perform form authentication.
|
java.lang.String |
getAuthMethod() |
java.lang.String |
getErrorPage() |
java.lang.String |
getLoginPage() |
boolean |
isJSecurityCheck(java.lang.String uri) |
boolean |
isLoginOrErrorPage(java.lang.String pathInContext) |
void |
setErrorPage(java.lang.String path) |
void |
setLoginPage(java.lang.String path) |
public static final java.lang.String __J_URI
public static final java.lang.String __J_AUTHENTICATED
public static final java.lang.String __J_SECURITY_CHECK
public static final java.lang.String __J_USERNAME
public static final java.lang.String __J_PASSWORD
public java.lang.String getAuthMethod()
getAuthMethod in interface Authenticatorpublic void setLoginPage(java.lang.String path)
public java.lang.String getLoginPage()
public void setErrorPage(java.lang.String path)
public java.lang.String getErrorPage()
public java.security.Principal authenticate(UserRealm realm, java.lang.String pathInContext, Request request, Response response) throws java.io.IOException
authenticate in interface Authenticatorrealm - an UserRealm valuepathInContext - a String valuerequest - a Request valueresponse - a Response value. If non-null response is passed,
then a failed authentication will result in a challenge response being
set in the response.java.io.IOException - if an error occurspublic boolean isLoginOrErrorPage(java.lang.String pathInContext)
public boolean isJSecurityCheck(java.lang.String uri)
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.