public class RedirectAuthHandler extends Object implements AuthenticationHandler, Handler<RoutingContext>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<RedirectAuthHandler> |
__TYPE_ARG |
static String |
DEFAULT_LOGIN_REDIRECT_URL
Default path the user will be redirected to
|
static String |
DEFAULT_RETURN_URL_PARAM
Default name of param used to store return url information in session
|
Constructor and Description |
---|
RedirectAuthHandler(Object delegate) |
RedirectAuthHandler(RedirectAuthHandler delegate) |
Modifier and Type | Method and Description |
---|---|
static RedirectAuthHandler |
create(AuthenticationProvider authProvider)
Create a handler
|
static RedirectAuthHandler |
create(AuthenticationProvider authProvider,
String loginRedirectURL)
Create a handler
|
static RedirectAuthHandler |
create(AuthenticationProvider authProvider,
String loginRedirectURL,
String returnURLParam)
Create a handler
|
boolean |
equals(Object o) |
RedirectAuthHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static RedirectAuthHandler |
newInstance(RedirectAuthHandler arg) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<RedirectAuthHandler> __TYPE_ARG
public static final String DEFAULT_LOGIN_REDIRECT_URL
public static final String DEFAULT_RETURN_URL_PARAM
public RedirectAuthHandler(RedirectAuthHandler delegate)
public RedirectAuthHandler(Object delegate)
public RedirectAuthHandler getDelegate()
getDelegate
in interface AuthenticationHandler
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
handle
in interface AuthenticationHandler
event
- the event to handlepublic static RedirectAuthHandler create(AuthenticationProvider authProvider)
authProvider
- the auth service to usepublic static RedirectAuthHandler create(AuthenticationProvider authProvider, String loginRedirectURL)
authProvider
- the auth service to useloginRedirectURL
- the url to redirect the user topublic static RedirectAuthHandler create(AuthenticationProvider authProvider, String loginRedirectURL, String returnURLParam)
authProvider
- the auth service to useloginRedirectURL
- the url to redirect the user toreturnURLParam
- the name of param used to store return url information in sessionpublic static RedirectAuthHandler newInstance(RedirectAuthHandler arg)
Copyright © 2023 Eclipse. All rights reserved.