Package io.vertx.mutiny.ext.web.handler
Class JWTAuthHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.JWTAuthHandler
- All Implemented Interfaces:
MutinyDelegate,io.vertx.core.Handler<RoutingContext>,AuthenticationHandler,Consumer<RoutingContext>
public class JWTAuthHandler
extends Object
implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>, MutinyDelegate
An auth handler that provides JWT Authentication support.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Paulo Lopes
- See Also:
-
JWTAuthHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.web.handler.AuthenticationHandler
AuthenticationHandler.AuthenticationHandlerImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJWTAuthHandler(io.vertx.ext.web.handler.JWTAuthHandler delegate) Create a new instance ofJWTAuthHandlerdelegating to the given (non-null) instance ofJWTAuthHandler.JWTAuthHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) Handle an item.static JWTAuthHandlerCreate a JWT auth handler.static JWTAuthHandlerCreate a JWT auth handler.booleanio.vertx.ext.web.handler.JWTAuthHandlerGet the delegate instance.voidhandle(RoutingContext item) Handle an item.inthashCode()static JWTAuthHandlernewInstance(io.vertx.ext.web.handler.JWTAuthHandler delegate) Creates a new instance of theJWTAuthHandler.scopeDelimiter(String delimiter) Set the scope delimiter.toString()Return a new instance with the internal state copied from the caller but the scopes to be requested during a token request are unique to the instance.withScopes(List<String> scopes) Return a new instance with the internal state copied from the caller but the scopes to be requested during a token request are unique to the instance.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
JWTAuthHandler
public JWTAuthHandler(io.vertx.ext.web.handler.JWTAuthHandler delegate) Create a new instance ofJWTAuthHandlerdelegating to the given (non-null) instance ofJWTAuthHandler. -
JWTAuthHandler
-
-
Method Details
-
accept
Handle an item. This method is generated from theoriginalmethod."- Specified by:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
handle
Handle an item. This method is generated from theoriginalmethod."- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
getDelegate
public io.vertx.ext.web.handler.JWTAuthHandler getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
create
Create a JWT auth handler. When no scopes are explicit declared, the default scopes will be looked up from the route metadata.- Parameters:
authProvider- the auth provider to use- Returns:
- the auth handler
-
create
Create a JWT auth handler. When no scopes are explicit declared, the default scopes will be looked up from the route metadata.- Parameters:
authProvider- the auth provider to use- Returns:
- the auth handler
-
scopeDelimiter
Set the scope delimiter. By default this is a space character.- Parameters:
delimiter- scope delimiter.- Returns:
- fluent self.
-
withScope
Return a new instance with the internal state copied from the caller but the scopes to be requested during a token request are unique to the instance. When scopes are applied to the handler, the default scopes from the route metadata will be ignored.- Parameters:
scope- scope.- Returns:
- new instance of this interface.
-
withScopes
Return a new instance with the internal state copied from the caller but the scopes to be requested during a token request are unique to the instance. When scopes are applied to the handler, the default scopes from the route metadata will be ignored.- Parameters:
scopes- scopes.- Returns:
- new instance of this interface.
-
newInstance
Creates a new instance of theJWTAuthHandler. -
hashCode
public int hashCode() -
equals
-
toString
-