public class FormAuthenticationScheme extends Object implements HTTPAuthenticationScheme
HTTPAuthenticationScheme that supports the Servlet Specification
FORM Authentication Scheme| Modifier and Type | Field and Description |
|---|---|
static String |
FORM_ERROR_PAGE_INIT_PARAM |
static String |
FORM_LOGIN_PAGE_INIT_PARAM |
static String |
J_PASSWORD |
static String |
J_SECURITY_CHECK |
static String |
J_USERNAME |
static String |
SAVED_REQUEST |
static String |
STATE |
| Constructor and Description |
|---|
FormAuthenticationScheme(FilterConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
challengeClient(HttpServletRequest request,
HttpServletResponse response)
Challenges the client if no credentials were supplied or the credentials were not extracted in order to continue with the authentication.
|
void |
extractCredential(HttpServletRequest request,
DefaultLoginCredentials creds)
Extracts the credentials from the given
HttpServletRequest and populate the DefaultLoginCredentials with them. |
boolean |
postAuthentication(HttpServletRequest request,
HttpServletResponse response)
Performs any post-authentication logic regarding of the authentication result.
|
public static final String FORM_LOGIN_PAGE_INIT_PARAM
public static final String FORM_ERROR_PAGE_INIT_PARAM
public static final String J_SECURITY_CHECK
public static final String J_USERNAME
public static final String J_PASSWORD
public static final String SAVED_REQUEST
public static final String STATE
public FormAuthenticationScheme(FilterConfig config)
public void extractCredential(HttpServletRequest request, DefaultLoginCredentials creds)
HTTPAuthenticationSchemeExtracts the credentials from the given HttpServletRequest and populate the DefaultLoginCredentials with them.
extractCredential in interface HTTPAuthenticationSchemepublic void challengeClient(HttpServletRequest request, HttpServletResponse response) throws IOException
HTTPAuthenticationSchemeChallenges the client if no credentials were supplied or the credentials were not extracted in order to continue with the authentication.
challengeClient in interface HTTPAuthenticationSchemeIOExceptionpublic boolean postAuthentication(HttpServletRequest request, HttpServletResponse response) throws IOException
HTTPAuthenticationSchemePerforms any post-authentication logic regarding of the authentication result.
postAuthentication in interface HTTPAuthenticationSchemeIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.