Class JWTAuthHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.JWTAuthHandler
-
- All Implemented Interfaces:
Handler<RoutingContext>
,AuthenticationHandler
public class JWTAuthHandler extends Object implements AuthenticationHandler, Handler<RoutingContext>
An auth handler that provides JWT Authentication support. NOTE: This class has been automatically generated from theoriginal
non RX-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(JWTAuthHandler delegate)
JWTAuthHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JWTAuthHandler
create(JWTAuth authProvider)
Create a JWT auth handlerstatic JWTAuthHandler
create(JWTAuth authProvider, String realm)
Create a JWT auth handlerboolean
equals(Object o)
JWTAuthHandler
getDelegate()
void
handle(RoutingContext event)
Something has happened, so handle it.int
hashCode()
static JWTAuthHandler
newInstance(JWTAuthHandler arg)
JWTAuthHandler
scopeDelimiter(String delimiter)
Return a new instance with the internal state copied from the caller but the scopes delimiter set to be unique to the instance.String
toString()
JWTAuthHandler
withScope(String scope)
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.JWTAuthHandler
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 Detail
-
__TYPE_ARG
public static final TypeArg<JWTAuthHandler> __TYPE_ARG
-
-
Constructor Detail
-
JWTAuthHandler
public JWTAuthHandler(JWTAuthHandler delegate)
-
JWTAuthHandler
public JWTAuthHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public JWTAuthHandler getDelegate()
- Specified by:
getDelegate
in interfaceAuthenticationHandler
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handle
in interfaceAuthenticationHandler
- Specified by:
handle
in interfaceHandler<RoutingContext>
- Parameters:
event
- the event to handle
-
create
public static JWTAuthHandler create(JWTAuth authProvider)
Create a JWT auth handler- Parameters:
authProvider
- the auth provider to use- Returns:
- the auth handler
-
create
public static JWTAuthHandler create(JWTAuth authProvider, String realm)
Create a JWT auth handler- Parameters:
authProvider
- the auth provider to userealm
-- Returns:
- the auth handler
-
scopeDelimiter
public JWTAuthHandler scopeDelimiter(String delimiter)
Return a new instance with the internal state copied from the caller but the scopes delimiter set to be unique to the instance.- Parameters:
delimiter
- scope delimiter.- Returns:
- new instance of this interface.
-
withScope
public JWTAuthHandler withScope(String scope)
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.- Parameters:
scope
- scope.- Returns:
- new instance of this interface.
-
withScopes
public JWTAuthHandler 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.- Parameters:
scopes
- scopes.- Returns:
- new instance of this interface.
-
newInstance
public static JWTAuthHandler newInstance(JWTAuthHandler arg)
-
-