@Deprecated public abstract class AuthHandlerImpl extends Object implements AuthHandler
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
authorities
Deprecated.
|
protected AuthenticationProvider |
authProvider
Deprecated.
|
protected String |
realm
Deprecated.
|
| Constructor and Description |
|---|
AuthHandlerImpl(AuthenticationProvider authProvider)
Deprecated.
|
AuthHandlerImpl(AuthenticationProvider authProvider,
String realm)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
AuthHandler |
addAuthorities(Set<String> authorities)
Deprecated.
Add a set of required authorities for this auth handler
|
AuthHandler |
addAuthority(String authority)
Deprecated.
Add a required authority for this auth handler
|
void |
authorize(User user,
Handler<AsyncResult<Void>> handler)
Deprecated.
Authorizes the given user against all added authorities.
|
void |
handle(RoutingContext ctx)
Deprecated.
Something has happened, so handle it.
|
protected void |
processException(RoutingContext ctx,
Throwable exception)
Deprecated.
This method is protected so custom auth handlers can override the default
error handling
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthorizeauthenticateHeader, parseCredentials, parseCredentials, postAuthenticationprotected final String realm
protected final AuthenticationProvider authProvider
public AuthHandlerImpl(AuthenticationProvider authProvider)
public AuthHandlerImpl(AuthenticationProvider authProvider, String realm)
public AuthHandler addAuthority(String authority)
AuthHandleraddAuthority in interface AuthHandlerauthority - the authoritypublic AuthHandler addAuthorities(Set<String> authorities)
AuthHandleraddAuthorities in interface AuthHandlerauthorities - the set of authoritiespublic void authorize(User user, Handler<AsyncResult<Void>> handler)
AuthHandlerauthorize in interface AuthHandleruser - a user.handler - the handler for the result.public void handle(RoutingContext ctx)
Handlerhandle in interface Handler<RoutingContext>ctx - the event to handleprotected void processException(RoutingContext ctx, Throwable exception)
Copyright © 2021. All rights reserved.