public class ChainAuthHandlerImpl extends AuthHandlerImpl implements ChainAuthHandler
authorities, authProvider, realm| Constructor and Description |
|---|
ChainAuthHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
AuthHandler |
addAuthorities(Set<String> authorities)
Add a set of required authorities for this auth handler
|
AuthHandler |
addAuthority(String authority)
Add a required authority for this auth handler
|
ChainAuthHandler |
append(AuthHandler other)
Appends a auth provider to the chain.
|
void |
clear()
Clears the chain.
|
void |
parseCredentials(RoutingContext context,
Handler<AsyncResult<JsonObject>> handler)
Parses the credentials from the request into a JsonObject.
|
boolean |
remove(AuthHandler other)
Removes a provider from the chain.
|
authenticateHeader, authorize, handle, processExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateauthorizepublic ChainAuthHandler append(AuthHandler other)
ChainAuthHandlerappend in interface ChainAuthHandlerother - auth handlerpublic boolean remove(AuthHandler other)
ChainAuthHandlerremove in interface ChainAuthHandlerother - provider to removepublic void clear()
ChainAuthHandlerclear in interface ChainAuthHandlerpublic AuthHandler addAuthority(String authority)
AuthHandleraddAuthority in interface AuthHandleraddAuthority in class AuthHandlerImplauthority - the authoritypublic AuthHandler addAuthorities(Set<String> authorities)
AuthHandleraddAuthorities in interface AuthHandleraddAuthorities in class AuthHandlerImplauthorities - the set of authoritiespublic void parseCredentials(RoutingContext context, Handler<AsyncResult<JsonObject>> handler)
AuthHandlerparseCredentials in interface AuthHandlercontext - the routing contexthandler - the handler to be called once the information is available.Copyright © 2020. All rights reserved.