org.mortbay.jetty.security
public class FormAuthenticator extends Object implements Authenticator
Modifier and Type | Field and Description |
---|---|
static String |
__J_AUTHENTICATED |
static String |
__J_PASSWORD |
static String |
__J_SECURITY_CHECK |
static String |
__J_URI |
static String |
__J_USERNAME |
Constructor and Description |
---|
FormAuthenticator() |
Modifier and Type | Method and Description |
---|---|
Principal |
authenticate(UserRealm realm,
String pathInContext,
Request request,
Response response)
Perform form authentication.
|
String |
getAuthMethod() |
String |
getErrorPage() |
String |
getLoginPage() |
boolean |
isJSecurityCheck(String uri) |
boolean |
isLoginOrErrorPage(String pathInContext) |
void |
setErrorPage(String path) |
void |
setLoginPage(String path) |
public static final String __J_URI
public static final String __J_AUTHENTICATED
public static final String __J_SECURITY_CHECK
public static final String __J_USERNAME
public static final String __J_PASSWORD
public String getAuthMethod()
getAuthMethod
in interface Authenticator
public void setLoginPage(String path)
public String getLoginPage()
public void setErrorPage(String path)
public String getErrorPage()
public Principal authenticate(UserRealm realm, String pathInContext, Request request, Response response) throws IOException
authenticate
in interface Authenticator
realm
- 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.IOException
- if an error occurspublic boolean isLoginOrErrorPage(String pathInContext)
public boolean isJSecurityCheck(String uri)
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.