Class FormLoginHandler
java.lang.Object
io.vertx.rxjava3.ext.web.handler.FormLoginHandler
- All Implemented Interfaces:
Handler<RoutingContext>, io.vertx.lang.rx.RxDelegate, AuthenticationHandler
public class FormLoginHandler
extends Object
implements io.vertx.lang.rx.RxDelegate, AuthenticationHandler, Handler<RoutingContext>
Handler that handles login from a form on a custom login page.
Used in conjunction with the RedirectAuthHandler.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<FormLoginHandler> static final StringThe default value of the form attribute which will contain the passwordstatic final StringThe default value of the session attribute which will contain the return urlstatic final StringThe default value of the form attribute which will contain the username -
Constructor Summary
ConstructorsConstructorDescriptionFormLoginHandler(FormLoginHandler delegate) FormLoginHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic FormLoginHandlercreate(AuthenticationProvider authProvider) Create a handlerstatic FormLoginHandlercreate(AuthenticationProvider authProvider, String usernameParam, String passwordParam, String returnURLParam, String directLoggedInOKURL) Create a handlerbooleanvoidhandle(RoutingContext event) Something has happened, so handle it.inthashCode()static FormLoginHandlersetDirectLoggedInOKURL(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 firstsetPasswordParam(String passwordParam) Set the name of the form param used to submit the passwordsetReturnURLParam(String returnURLParam) Set the name of the session attrioute used to specify the return urlsetUsernameParam(String usernameParam) Set the name of the form param used to submit the usernametoString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_USERNAME_PARAM
The default value of the form attribute which will contain the username- See Also:
-
DEFAULT_PASSWORD_PARAM
The default value of the form attribute which will contain the password- See Also:
-
DEFAULT_RETURN_URL_PARAM
The default value of the session attribute which will contain the return url- See Also:
-
-
Constructor Details
-
FormLoginHandler
-
FormLoginHandler
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
Something has happened, so handle it.- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceHandler<RoutingContext>- Parameters:
event- the event to handle
-
create
Create a handler- 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) Create a handler- 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
Set the name of the form param used to submit the username- Parameters:
usernameParam- the name of the param- Returns:
- a reference to this for a fluent API
-
setPasswordParam
Set the name of the form param used to submit the password- Parameters:
passwordParam- the name of the param- Returns:
- a reference to this for a fluent API
-
setReturnURLParam
Set the name of the session attrioute used to specify the return url- Parameters:
returnURLParam- the name of the param- Returns:
- a reference to this for a fluent API
-
setDirectLoggedInOKURL
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- Parameters:
directLoggedInOKURL- the URL to redirect to- Returns:
- a reference to this for a fluent API
-
newInstance
-