public class FormLoginHandlerImpl extends Object implements FormLoginHandler
DEFAULT_PASSWORD_PARAM, DEFAULT_RETURN_URL_PARAM, DEFAULT_USERNAME_PARAM| Constructor and Description |
|---|
FormLoginHandlerImpl(AuthProvider authProvider,
String usernameParam,
String passwordParam,
String returnURLParam,
String directLoggedInOKURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(RoutingContext context)
Something has happened, so handle it.
|
FormLoginHandler |
setDirectLoggedInOKURL(String directLoggedInOKURL)
Set the url to redirect to if the user logs in directly at the url of the form login handler
without being redirected here first
|
FormLoginHandler |
setPasswordParam(String passwordParam)
Set the name of the form param used to submit the password
|
FormLoginHandler |
setReturnURLParam(String returnURLParam)
Set the name of the session attrioute used to specify the return url
|
FormLoginHandler |
setUsernameParam(String usernameParam)
Set the name of the form param used to submit the username
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createpublic FormLoginHandlerImpl(AuthProvider authProvider, String usernameParam, String passwordParam, String returnURLParam, String directLoggedInOKURL)
public FormLoginHandler setUsernameParam(String usernameParam)
FormLoginHandlersetUsernameParam in interface FormLoginHandlerusernameParam - the name of the parampublic FormLoginHandler setPasswordParam(String passwordParam)
FormLoginHandlersetPasswordParam in interface FormLoginHandlerpasswordParam - the name of the parampublic FormLoginHandler setReturnURLParam(String returnURLParam)
FormLoginHandlersetReturnURLParam in interface FormLoginHandlerreturnURLParam - the name of the parampublic FormLoginHandler setDirectLoggedInOKURL(String directLoggedInOKURL)
FormLoginHandlersetDirectLoggedInOKURL in interface FormLoginHandlerdirectLoggedInOKURL - the URL to redirect topublic void handle(RoutingContext context)
Handlerhandle in interface Handler<RoutingContext>context - the event to handleCopyright © 2020. All rights reserved.