Class RedirectAuthHandler
java.lang.Object
io.vertx.rxjava3.ext.web.handler.RedirectAuthHandler
- All Implemented Interfaces:
Handler<RoutingContext>, io.vertx.lang.rx.RxDelegate, AuthenticationHandler
public class RedirectAuthHandler
extends Object
implements io.vertx.lang.rx.RxDelegate, AuthenticationHandler, Handler<RoutingContext>
An auth handler that's used to handle auth by redirecting user to a custom login page.
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<RedirectAuthHandler> static final StringDefault path the user will be redirected tostatic final StringDefault name of param used to store return url information in session -
Constructor Summary
ConstructorsConstructorDescriptionRedirectAuthHandler(RedirectAuthHandler delegate) RedirectAuthHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic RedirectAuthHandlercreate(AuthenticationProvider authProvider) Create a handlerstatic RedirectAuthHandlercreate(AuthenticationProvider authProvider, String loginRedirectURL) Create a handlerstatic RedirectAuthHandlercreate(AuthenticationProvider authProvider, String loginRedirectURL, String returnURLParam) Create a handlerbooleanvoidhandle(RoutingContext event) Something has happened, so handle it.inthashCode()static RedirectAuthHandlertoString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_LOGIN_REDIRECT_URL
Default path the user will be redirected to- See Also:
-
DEFAULT_RETURN_URL_PARAM
Default name of param used to store return url information in session- See Also:
-
-
Constructor Details
-
RedirectAuthHandler
-
RedirectAuthHandler
-
-
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 RedirectAuthHandler create(AuthenticationProvider authProvider, String loginRedirectURL) Create a handler- Parameters:
authProvider- the auth service to useloginRedirectURL- the url to redirect the user to- Returns:
- the handler
-
create
public static RedirectAuthHandler create(AuthenticationProvider authProvider, String loginRedirectURL, String returnURLParam) Create a handler- Parameters:
authProvider- the auth service to useloginRedirectURL- the url to redirect the user toreturnURLParam- the name of param used to store return url information in session- Returns:
- the handler
-
newInstance
-