Package io.vertx.mutiny.ext.web.handler
Class JWTAuthHandler
- java.lang.Object
 - 
- io.vertx.mutiny.ext.web.handler.JWTAuthHandler
 
 
- 
- All Implemented Interfaces:
 io.vertx.core.Handler<RoutingContext>,AuthenticationHandler,Consumer<RoutingContext>
public class JWTAuthHandler extends Object implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
An auth handler that provides JWT Authentication support. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static TypeArg<JWTAuthHandler>__TYPE_ARG 
- 
Constructor Summary
Constructors Constructor Description JWTAuthHandler(io.vertx.ext.web.handler.JWTAuthHandler delegate)JWTAuthHandler(Object delegate) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RoutingContext item)static JWTAuthHandlercreate(JWTAuth authProvider)static JWTAuthHandlercreate(JWTAuth authProvider, String realm)booleanequals(Object o)io.vertx.ext.web.handler.JWTAuthHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()static JWTAuthHandlernewInstance(io.vertx.ext.web.handler.JWTAuthHandler arg)JWTAuthHandlerscopeDelimiter(String delimiter)StringtoString()JWTAuthHandlerwithScope(String scope)JWTAuthHandlerwithScopes(List<String> scopes) 
 - 
 
- 
- 
Field Detail
- 
__TYPE_ARG
public static final TypeArg<JWTAuthHandler> __TYPE_ARG
 
 - 
 
- 
Constructor Detail
- 
JWTAuthHandler
public JWTAuthHandler(io.vertx.ext.web.handler.JWTAuthHandler delegate)
 
- 
JWTAuthHandler
public JWTAuthHandler(Object delegate)
 
 - 
 
- 
Method Detail
- 
getDelegate
public io.vertx.ext.web.handler.JWTAuthHandler getDelegate()
- Specified by:
 getDelegatein interfaceAuthenticationHandler
 
- 
handle
public void handle(RoutingContext arg0)
- Specified by:
 handlein interfaceAuthenticationHandler- Specified by:
 handlein interfaceio.vertx.core.Handler<RoutingContext>
 
- 
create
public static JWTAuthHandler create(JWTAuth authProvider)
- Parameters:
 authProvider- the auth provider to use- Returns:
 - the auth handler
 
 
- 
create
public static JWTAuthHandler create(JWTAuth authProvider, String realm)
- Parameters:
 authProvider- the auth provider to userealm-- Returns:
 - the auth handler
 
 
- 
scopeDelimiter
public JWTAuthHandler scopeDelimiter(String delimiter)
- Parameters:
 delimiter- scope delimiter.- Returns:
 - new instance of this interface.
 
 
- 
withScope
public JWTAuthHandler withScope(String scope)
- Parameters:
 scope- scope.- Returns:
 - new instance of this interface.
 
 
- 
withScopes
public JWTAuthHandler withScopes(List<String> scopes)
- Parameters:
 scopes- scopes.- Returns:
 - new instance of this interface.
 
 
- 
accept
public void accept(RoutingContext item)
- Specified by:
 acceptin interfaceAuthenticationHandler- Specified by:
 acceptin interfaceConsumer<RoutingContext>
 
- 
newInstance
public static JWTAuthHandler newInstance(io.vertx.ext.web.handler.JWTAuthHandler arg)
 
 - 
 
 -