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 theoriginal
non 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 void
accept(RoutingContext item)
static JWTAuthHandler
create(JWTAuth authProvider)
static JWTAuthHandler
create(JWTAuth authProvider, String realm)
boolean
equals(Object o)
io.vertx.ext.web.handler.JWTAuthHandler
getDelegate()
void
handle(RoutingContext arg0)
int
hashCode()
static JWTAuthHandler
newInstance(io.vertx.ext.web.handler.JWTAuthHandler arg)
JWTAuthHandler
scopeDelimiter(String delimiter)
String
toString()
JWTAuthHandler
withScope(String scope)
JWTAuthHandler
withScopes(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:
getDelegate
in interfaceAuthenticationHandler
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handle
in interfaceAuthenticationHandler
- Specified by:
handle
in 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:
accept
in interfaceAuthenticationHandler
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
public static JWTAuthHandler newInstance(io.vertx.ext.web.handler.JWTAuthHandler arg)
-
-