public abstract class AuthenticationHandlerImpl<T extends AuthenticationProvider> extends Object implements AuthenticationHandler
| Modifier and Type | Field and Description |
|---|---|
protected T |
authProvider |
protected String |
realm |
| Constructor and Description |
|---|
AuthenticationHandlerImpl(T authProvider) |
AuthenticationHandlerImpl(T authProvider,
String realm) |
| Modifier and Type | Method and Description |
|---|---|
protected AuthenticationProvider |
getAuthProvider(RoutingContext ctx) |
void |
handle(RoutingContext ctx)
Something has happened, so handle it.
|
protected void |
processException(RoutingContext ctx,
Throwable exception)
This method is protected so custom auth handlers can override the default
error handling
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticateHeader, parseCredentials, parseCredentials, postAuthenticationprotected final String realm
protected final T extends AuthenticationProvider authProvider
public AuthenticationHandlerImpl(T authProvider)
public void handle(RoutingContext ctx)
Handlerhandle in interface Handler<RoutingContext>ctx - the event to handleprotected void processException(RoutingContext ctx, Throwable exception)
protected AuthenticationProvider getAuthProvider(RoutingContext ctx)
Copyright © 2021. All rights reserved.