Package io.vertx.mutiny.ext.web.handler
Class OAuth2AuthHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.OAuth2AuthHandler
- All Implemented Interfaces:
MutinyDelegate,io.vertx.core.Handler<RoutingContext>,AuthenticationHandler,Consumer<RoutingContext>
public class OAuth2AuthHandler
extends Object
implements MutinyDelegate, AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
An auth handler that provides OAuth2 Authentication support. This handler is suitable for AuthCode flows.
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2AuthHandler(io.vertx.ext.web.handler.OAuth2AuthHandler delegate) OAuth2AuthHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) static OAuth2AuthHandlercreate(Vertx vertx, OAuth2Auth authProvider) static OAuth2AuthHandlercreate(Vertx vertx, OAuth2Auth authProvider, String callbackURL) booleanextraParams(io.vertx.core.json.JsonObject extraParams) io.vertx.ext.web.handler.OAuth2AuthHandlervoidhandle(RoutingContext arg0) inthashCode()static OAuth2AuthHandlernewInstance(io.vertx.ext.web.handler.OAuth2AuthHandler arg) pkceVerifierLength(int length) setupCallback(Route route) toString()withScopes(List<String> scopes)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
OAuth2AuthHandler
public OAuth2AuthHandler(io.vertx.ext.web.handler.OAuth2AuthHandler delegate) -
OAuth2AuthHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.OAuth2AuthHandler getDelegate()- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
create
- Parameters:
vertx- the vertx instanceauthProvider- the auth provider to usecallbackURL- the callback URL you entered in your provider admin console, usually it should be something like: `https://myserver:8888/callback`- Returns:
- the auth handler
-
create
- Parameters:
vertx- the vertx instanceauthProvider- the auth provider to use- Returns:
- the auth handler
-
extraParams
- Parameters:
extraParams- extra optional parameters.- Returns:
- self
-
withScope
- Parameters:
scope- scope.- Returns:
- new instance of this interface.
-
withScopes
- Parameters:
scopes- scopes.- Returns:
- new instance of this interface.
-
prompt
- Parameters:
prompt- the prompt choice.- Returns:
- self
-
pkceVerifierLength
- Parameters:
length- A number between 43 and 128. Or -1 to disable.- Returns:
- self
-
setupCallback
- Parameters:
route- a given route e.g.: `/callback`- Returns:
- self
-
accept
- Specified by:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
-