public class ServletFormAuthenticationMechanism extends FormAuthenticationMechanism
| Modifier and Type | Class and Description |
|---|---|
static class |
ServletFormAuthenticationMechanism.Factory |
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult| Modifier and Type | Field and Description |
|---|---|
static AuthenticationMechanismFactory |
FACTORY |
static String |
SAVE_ORIGINAL_REQUEST |
authenticationSessionTimeout, DEFAULT_POST_LOCATION, LOCATION_ATTRIBUTE, ORIGINAL_SESSION_TIMEOUT| Constructor and Description |
|---|
ServletFormAuthenticationMechanism(FormParserFactory formParserFactory,
String name,
String loginPage,
String errorPage) |
ServletFormAuthenticationMechanism(FormParserFactory formParserFactory,
String name,
String loginPage,
String errorPage,
IdentityManager identityManager) |
ServletFormAuthenticationMechanism(FormParserFactory formParserFactory,
String name,
String loginPage,
String errorPage,
IdentityManager identityManager,
boolean saveOriginalRequest) |
ServletFormAuthenticationMechanism(FormParserFactory formParserFactory,
String name,
String loginPage,
String errorPage,
String postLocation) |
ServletFormAuthenticationMechanism(FormParserFactory formParserFactory,
String name,
String loginPage,
String errorPage,
String defaultPage,
boolean overrideInitial,
IdentityManager identityManager,
boolean saveOriginalRequest) |
ServletFormAuthenticationMechanism(String name,
String loginPage,
String errorPage)
Deprecated.
|
ServletFormAuthenticationMechanism(String name,
String loginPage,
String errorPage,
String postLocation)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationMechanism.AuthenticationMechanismOutcome |
authenticate(HttpServerExchange exchange,
SecurityContext securityContext)
Perform authentication of the request.
|
protected void |
handleRedirectBack(HttpServerExchange exchange) |
protected Integer |
servePage(HttpServerExchange exchange,
String location) |
protected void |
storeInitialLocation(HttpServerExchange exchange) |
protected void |
storeInitialLocation(HttpServerExchange exchange,
byte[] bytes,
int contentLength)
This method doesn't save content of request but instead uses data from parameter.
|
runFormAuth, sendChallengepublic static final AuthenticationMechanismFactory FACTORY
public static final String SAVE_ORIGINAL_REQUEST
@Deprecated public ServletFormAuthenticationMechanism(String name, String loginPage, String errorPage)
@Deprecated public ServletFormAuthenticationMechanism(String name, String loginPage, String errorPage, String postLocation)
public ServletFormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage, String postLocation)
public ServletFormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage)
public ServletFormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage, IdentityManager identityManager)
public ServletFormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage, IdentityManager identityManager, boolean saveOriginalRequest)
public ServletFormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage, String defaultPage, boolean overrideInitial, IdentityManager identityManager, boolean saveOriginalRequest)
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanismauthenticate in interface AuthenticationMechanismauthenticate in class FormAuthenticationMechanismexchange - The exchangeprotected Integer servePage(HttpServerExchange exchange, String location)
servePage in class FormAuthenticationMechanismprotected void storeInitialLocation(HttpServerExchange exchange)
storeInitialLocation in class FormAuthenticationMechanismprotected void storeInitialLocation(HttpServerExchange exchange, byte[] bytes, int contentLength)
exchange - bytes - contentLength - protected void handleRedirectBack(HttpServerExchange exchange)
handleRedirectBack in class FormAuthenticationMechanismCopyright © 2024 JBoss by Red Hat. All rights reserved.