Package io.vertx.mutiny.ext.web.handler
Class FormLoginHandler
- java.lang.Object
 - 
- io.vertx.mutiny.ext.web.handler.FormLoginHandler
 
 
- 
- All Implemented Interfaces:
 io.vertx.core.Handler<RoutingContext>,Consumer<RoutingContext>
public class FormLoginHandler extends Object implements io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
Handler that handles login from a form on a custom login page.Used in conjunction with the
NOTE: This class has been automatically generated from theRedirectAuthHandler.originalnon Mutiny-ified interface using Vert.x codegen. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static TypeArg<FormLoginHandler>__TYPE_ARGstatic StringDEFAULT_PASSWORD_PARAMThe default value of the form attribute which will contain the passwordstatic StringDEFAULT_RETURN_URL_PARAMThe default value of the session attribute which will contain the return urlstatic StringDEFAULT_USERNAME_PARAMThe default value of the form attribute which will contain the username 
- 
Constructor Summary
Constructors Constructor Description FormLoginHandler(io.vertx.ext.web.handler.FormLoginHandler delegate)FormLoginHandler(Object delegate) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RoutingContext item)static FormLoginHandlercreate(AuthenticationProvider authProvider)static FormLoginHandlercreate(AuthenticationProvider authProvider, String usernameParam, String passwordParam, String returnURLParam, String directLoggedInOKURL)booleanequals(Object o)io.vertx.ext.web.handler.FormLoginHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()static FormLoginHandlernewInstance(io.vertx.ext.web.handler.FormLoginHandler arg)FormLoginHandlersetDirectLoggedInOKURL(String directLoggedInOKURL)FormLoginHandlersetPasswordParam(String passwordParam)FormLoginHandlersetReturnURLParam(String returnURLParam)FormLoginHandlersetUsernameParam(String usernameParam)StringtoString() 
 - 
 
- 
- 
Field Detail
- 
__TYPE_ARG
public static final TypeArg<FormLoginHandler> __TYPE_ARG
 
- 
DEFAULT_USERNAME_PARAM
public static final String DEFAULT_USERNAME_PARAM
The default value of the form attribute which will contain the username- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_PASSWORD_PARAM
public static final String DEFAULT_PASSWORD_PARAM
The default value of the form attribute which will contain the password- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_RETURN_URL_PARAM
public static final String DEFAULT_RETURN_URL_PARAM
The default value of the session attribute which will contain the return url- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
FormLoginHandler
public FormLoginHandler(io.vertx.ext.web.handler.FormLoginHandler delegate)
 
- 
FormLoginHandler
public FormLoginHandler(Object delegate)
 
 - 
 
- 
Method Detail
- 
getDelegate
public io.vertx.ext.web.handler.FormLoginHandler getDelegate()
 
- 
handle
public void handle(RoutingContext arg0)
- Specified by:
 handlein interfaceio.vertx.core.Handler<RoutingContext>
 
- 
create
public static FormLoginHandler create(AuthenticationProvider authProvider)
- Parameters:
 authProvider- the auth service to use- Returns:
 - the handler
 
 
- 
create
public static FormLoginHandler create(AuthenticationProvider authProvider, String usernameParam, String passwordParam, String returnURLParam, String directLoggedInOKURL)
- Parameters:
 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 first- Returns:
 - the handler
 
 
- 
setUsernameParam
public FormLoginHandler setUsernameParam(String usernameParam)
- Parameters:
 usernameParam- the name of the param- Returns:
 - a reference to this for a fluent API
 
 
- 
setPasswordParam
public FormLoginHandler setPasswordParam(String passwordParam)
- Parameters:
 passwordParam- the name of the param- Returns:
 - a reference to this for a fluent API
 
 
- 
setReturnURLParam
public FormLoginHandler setReturnURLParam(String returnURLParam)
- Parameters:
 returnURLParam- the name of the param- Returns:
 - a reference to this for a fluent API
 
 
- 
setDirectLoggedInOKURL
public FormLoginHandler setDirectLoggedInOKURL(String directLoggedInOKURL)
- Parameters:
 directLoggedInOKURL- the URL to redirect to- Returns:
 - a reference to this for a fluent API
 
 
- 
accept
public void accept(RoutingContext item)
- Specified by:
 acceptin interfaceConsumer<RoutingContext>
 
- 
newInstance
public static FormLoginHandler newInstance(io.vertx.ext.web.handler.FormLoginHandler arg)
 
 - 
 
 -