Package com.hcl.labs.domi
Class RevokeTokenHandler
- java.lang.Object
-
- io.vertx.ext.web.handler.impl.BodyHandlerImpl
-
- com.hcl.labs.domi.RefreshTokenHandler
-
- com.hcl.labs.domi.RevokeTokenHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
,io.vertx.ext.web.handler.BodyHandler
public class RevokeTokenHandler extends RefreshTokenHandler
- Author:
- Paul Withers Handlers for revoking OAuth tokens. Bearer token expected on incoming. If included, the token is revoked with the relevant provider
-
-
Constructor Summary
Constructors Constructor Description RevokeTokenHandler(io.vertx.ext.auth.oauth2.OAuth2Auth oAuthProvider, String providerName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(io.vertx.ext.web.RoutingContext ctx)
-
Methods inherited from class com.hcl.labs.domi.RefreshTokenHandler
createJsonResponse, endWithError, extractToken, getOAuthProvider, getProviderName
-
-
-
-
Constructor Detail
-
RevokeTokenHandler
public RevokeTokenHandler(io.vertx.ext.auth.oauth2.OAuth2Auth oAuthProvider, String providerName)
- Parameters:
oAuthProvider
- current OAUth provider configproviderName
- OAuth provider name
-
-
Method Detail
-
handle
public void handle(io.vertx.ext.web.RoutingContext ctx)
- Specified by:
handle
in interfaceio.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
- Overrides:
handle
in classRefreshTokenHandler
-
-