public class FormLoginHandler extends Object implements Handler<RoutingContext>
Used in conjunction with the RedirectAuthHandler.
original non RX-ified interface using Vert.x codegen.| Constructor and Description |
|---|
FormLoginHandler(FormLoginHandler delegate) |
| Modifier and Type | Method and Description |
|---|---|
static FormLoginHandler |
create(AuthProvider authProvider)
Create a handler
|
static FormLoginHandler |
create(AuthProvider authProvider,
String usernameParam,
String passwordParam,
String returnURLParam,
String directLoggedInOKURL)
Create a handler
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static FormLoginHandler |
newInstance(FormLoginHandler arg) |
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
|
public FormLoginHandler(FormLoginHandler delegate)
public Object getDelegate()
public void handle(RoutingContext arg0)
Handlerhandle in interface Handler<RoutingContext>arg0 - the event to handlepublic static FormLoginHandler create(AuthProvider authProvider)
authProvider - the auth service to usepublic static FormLoginHandler create(AuthProvider authProvider, String usernameParam, String passwordParam, String returnURLParam, String directLoggedInOKURL)
authProvider - the auth service to useusernameParam - the value of the form attribute which will contain the usernamepasswordParam - the value of the form attribute which will contain the passwordreturnURLParam - the value of the session attribute which will contain the return urldirectLoggedInOKURL - a url to redirect to if the user logs in directly at the url of the form login handler without being redirected here firstpublic FormLoginHandler setUsernameParam(String usernameParam)
usernameParam - the name of the parampublic FormLoginHandler setPasswordParam(String passwordParam)
passwordParam - the name of the parampublic FormLoginHandler setReturnURLParam(String returnURLParam)
returnURLParam - the name of the parampublic FormLoginHandler setDirectLoggedInOKURL(String directLoggedInOKURL)
directLoggedInOKURL - the URL to redirect topublic static FormLoginHandler newInstance(FormLoginHandler arg)
Copyright © 2015. All rights reserved.