public class FormAuthenticationMechanism extends Object implements AuthenticationMechanism
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_POST_LOCATION |
static String |
LOCATION_COOKIE |
| Constructor and Description |
|---|
FormAuthenticationMechanism(FormParserFactory formParserFactory,
String name,
String loginPage,
String errorPage) |
FormAuthenticationMechanism(FormParserFactory formParserFactory,
String name,
String loginPage,
String errorPage,
String postLocation) |
FormAuthenticationMechanism(String name,
String loginPage,
String errorPage) |
FormAuthenticationMechanism(String name,
String loginPage,
String errorPage,
String postLocation) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationMechanism.AuthenticationMechanismOutcome |
authenticate(HttpServerExchange exchange,
SecurityContext securityContext)
Perform authentication of the request.
|
protected void |
handleRedirectBack(HttpServerExchange exchange) |
AuthenticationMechanism.AuthenticationMechanismOutcome |
runFormAuth(HttpServerExchange exchange,
SecurityContext securityContext) |
AuthenticationMechanism.ChallengeResult |
sendChallenge(HttpServerExchange exchange,
SecurityContext securityContext)
Send an authentication challenge to the remote client.
|
protected Integer |
servePage(HttpServerExchange exchange,
String location) |
protected void |
storeInitialLocation(HttpServerExchange exchange) |
public static final String LOCATION_COOKIE
public static final String DEFAULT_POST_LOCATION
public FormAuthenticationMechanism(String name, String loginPage, String errorPage)
public FormAuthenticationMechanism(String name, String loginPage, String errorPage, String postLocation)
public FormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage)
public FormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage, String postLocation)
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanismauthenticate in interface AuthenticationMechanismexchange - The exchangepublic AuthenticationMechanism.AuthenticationMechanismOutcome runFormAuth(HttpServerExchange exchange, SecurityContext securityContext)
protected void handleRedirectBack(HttpServerExchange exchange)
public AuthenticationMechanism.ChallengeResult sendChallenge(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanismAuthenticationMechanism.ChallengeResult and the most appropriate
overall response code will be selected.sendChallenge in interface AuthenticationMechanismexchange - The exchangesecurityContext - The security contextAuthenticationMechanism.ChallengeResult indicating if a challenge was sent and the desired response code.protected void storeInitialLocation(HttpServerExchange exchange)
protected Integer servePage(HttpServerExchange exchange, String location)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.