Class ServletFormAuthenticationMechanism
- java.lang.Object
-
- io.undertow.security.impl.FormAuthenticationMechanism
-
- io.undertow.servlet.handlers.security.ServletFormAuthenticationMechanism
-
- All Implemented Interfaces:
AuthenticationMechanism
public class ServletFormAuthenticationMechanism extends FormAuthenticationMechanism
Servlet handler for FORM authentication. Instead of using a redirect it serves up error and login pages immediately using a forward- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServletFormAuthenticationMechanism.Factory-
Nested classes/interfaces inherited from interface io.undertow.security.api.AuthenticationMechanism
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringSAVE_ORIGINAL_REQUEST-
Fields inherited from class io.undertow.security.impl.FormAuthenticationMechanism
DEFAULT_POST_LOCATION, LOCATION_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor 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(String name, String loginPage, String errorPage)Deprecated.ServletFormAuthenticationMechanism(String name, String loginPage, String errorPage, String postLocation)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleRedirectBack(HttpServerExchange exchange)protected IntegerservePage(HttpServerExchange exchange, String location)protected voidstoreInitialLocation(HttpServerExchange exchange)-
Methods inherited from class io.undertow.security.impl.FormAuthenticationMechanism
authenticate, runFormAuth, sendChallenge
-
-
-
-
Field Detail
-
SAVE_ORIGINAL_REQUEST
public static final String SAVE_ORIGINAL_REQUEST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServletFormAuthenticationMechanism
@Deprecated public ServletFormAuthenticationMechanism(String name, String loginPage, String errorPage)
Deprecated.
-
ServletFormAuthenticationMechanism
@Deprecated public ServletFormAuthenticationMechanism(String name, String loginPage, String errorPage, String postLocation)
Deprecated.
-
ServletFormAuthenticationMechanism
public ServletFormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage, String postLocation)
-
ServletFormAuthenticationMechanism
public ServletFormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage)
-
ServletFormAuthenticationMechanism
public ServletFormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage, IdentityManager identityManager)
-
ServletFormAuthenticationMechanism
public ServletFormAuthenticationMechanism(FormParserFactory formParserFactory, String name, String loginPage, String errorPage, IdentityManager identityManager, boolean saveOriginalRequest)
-
-
Method Detail
-
servePage
protected Integer servePage(HttpServerExchange exchange, String location)
- Overrides:
servePagein classFormAuthenticationMechanism
-
storeInitialLocation
protected void storeInitialLocation(HttpServerExchange exchange)
- Overrides:
storeInitialLocationin classFormAuthenticationMechanism
-
handleRedirectBack
protected void handleRedirectBack(HttpServerExchange exchange)
- Overrides:
handleRedirectBackin classFormAuthenticationMechanism
-
-