Package io.vertx.mutiny.ext.web.handler
Class RedirectAuthHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.RedirectAuthHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>,AuthenticationHandler,Consumer<RoutingContext>
public class RedirectAuthHandler extends Object implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<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 theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.smallrye.mutiny.vertx.TypeArg<RedirectAuthHandler>__TYPE_ARGstatic StringDEFAULT_LOGIN_REDIRECT_URLDefault path the user will be redirected tostatic StringDEFAULT_RETURN_URL_PARAMDefault name of param used to store return url information in session
-
Constructor Summary
Constructors Constructor Description RedirectAuthHandler(io.vertx.ext.web.handler.RedirectAuthHandler delegate)RedirectAuthHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RoutingContext item)static RedirectAuthHandlercreate(AuthenticationProvider authProvider)static RedirectAuthHandlercreate(AuthenticationProvider authProvider, String loginRedirectURL)static RedirectAuthHandlercreate(AuthenticationProvider authProvider, String loginRedirectURL, String returnURLParam)booleanequals(Object o)io.vertx.ext.web.handler.RedirectAuthHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()static RedirectAuthHandlernewInstance(io.vertx.ext.web.handler.RedirectAuthHandler arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.smallrye.mutiny.vertx.TypeArg<RedirectAuthHandler> __TYPE_ARG
-
DEFAULT_LOGIN_REDIRECT_URL
public static final String DEFAULT_LOGIN_REDIRECT_URL
Default path the user will be redirected to- See Also:
- Constant Field Values
-
DEFAULT_RETURN_URL_PARAM
public static final String DEFAULT_RETURN_URL_PARAM
Default name of param used to store return url information in session- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RedirectAuthHandler
public RedirectAuthHandler(io.vertx.ext.web.handler.RedirectAuthHandler delegate)
-
RedirectAuthHandler
public RedirectAuthHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.RedirectAuthHandler getDelegate()
- Specified by:
getDelegatein interfaceAuthenticationHandler
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
create
public static RedirectAuthHandler create(AuthenticationProvider authProvider)
- Parameters:
authProvider- the auth service to use- Returns:
- the handler
-
create
public static RedirectAuthHandler create(AuthenticationProvider authProvider, String loginRedirectURL)
- 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)
- 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
-
accept
public void accept(RoutingContext item)
- Specified by:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
public static RedirectAuthHandler newInstance(io.vertx.ext.web.handler.RedirectAuthHandler arg)
-
-