public class OAuth2AuthHandlerImpl extends AuthHandlerImpl implements OAuth2AuthHandler
| Modifier and Type | Field and Description |
|---|---|
protected io.vertx.ext.web.handler.impl.AuthorizationAuthHandler.Type |
type |
authorities, authProvider, realm| Constructor and Description |
|---|
OAuth2AuthHandlerImpl(OAuth2Auth authProvider,
String callbackURL) |
| 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
|
OAuth2AuthHandler |
extraParams(JsonObject extraParams)
Extra parameters needed to be passed while requesting a token.
|
protected void |
parseAuthorization(RoutingContext ctx,
boolean optional,
Handler<AsyncResult<String>> handler) |
void |
parseCredentials(RoutingContext context,
Handler<AsyncResult<JsonObject>> handler)
Parses the credentials from the request into a JsonObject.
|
OAuth2AuthHandler |
setupCallback(Route route)
add the callback handler to a given route.
|
authenticateHeader, authorize, handle, processExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createauthorizepublic OAuth2AuthHandlerImpl(OAuth2Auth authProvider, String callbackURL)
public 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.public OAuth2AuthHandler extraParams(JsonObject extraParams)
OAuth2AuthHandlerextraParams in interface OAuth2AuthHandlerextraParams - extra optional parameters.public OAuth2AuthHandler setupCallback(Route route)
OAuth2AuthHandlersetupCallback in interface OAuth2AuthHandlerroute - a given route e.g.: `/callback`protected final void parseAuthorization(RoutingContext ctx, boolean optional, Handler<AsyncResult<String>> handler)
Copyright © 2020. All rights reserved.