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 |
---|---|
String |
authenticateHeader(RoutingContext context)
Returns
|
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) |
void |
parseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
void |
parseCredentials(RoutingContext context,
Handler<AsyncResult<Credentials>> handler)
Parses the credentials from the request into a JsonObject.
|
void |
postAuthentication(RoutingContext ctx)
This method is called to perform any post authentication tasks, such as redirects.
|
Single<Credentials> |
rxParseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
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 String authenticateHeader(RoutingContext context)
authenticateHeader
in interface AuthenticationHandler
context
- public void postAuthentication(RoutingContext ctx)
postAuthentication
in interface AuthenticationHandler
ctx
- the routing contextpublic 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 void parseCredentials(RoutingContext context, Handler<AsyncResult<Credentials>> handler)
context
- the routing contexthandler
- the handler to be called once the information is available.public void parseCredentials(RoutingContext context)
context
- the routing contextpublic Single<Credentials> rxParseCredentials(RoutingContext context)
context
- the routing contextpublic static RedirectAuthHandler newInstance(RedirectAuthHandler arg)
Copyright © 2020 Eclipse. All rights reserved.