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,
HttpRequest httpRequest,
HttpResponse httpResponse)
Perform form authentication.
|
String |
getAuthMethod() |
String |
getErrorPage() |
String |
getLoginPage() |
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 Authenticatorpublic void setLoginPage(String path)
public String getLoginPage()
public void setErrorPage(String path)
public String getErrorPage()
public Principal authenticate(UserRealm realm, String pathInContext, HttpRequest httpRequest, HttpResponse httpResponse) throws IOException
authenticate in interface Authenticatorrealm - an UserRealm valuepathInContext - a String valuehttpRequest - a HttpRequest valuehttpResponse - a HttpResponse 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)
Copyright © 2015. All Rights Reserved.