public class JWTAuth extends AuthenticationProvider
AuthenticationProvider
instances.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<JWTAuth> |
__TYPE_ARG |
Constructor and Description |
---|
JWTAuth(JWTAuth delegate) |
JWTAuth(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static JWTAuth |
create(Vertx vertx,
JWTAuthOptions config)
Create a JWT auth provider
|
boolean |
equals(Object o) |
String |
generateToken(JsonObject claims)
Generate a new JWT token.
|
String |
generateToken(JsonObject claims,
JWTOptions options)
Generate a new JWT token.
|
JWTAuth |
getDelegate() |
int |
hashCode() |
static JWTAuth |
newInstance(JWTAuth arg) |
String |
toString() |
authenticate, authenticate, authenticate, authenticate, newInstance, rxAuthenticate, rxAuthenticate
public static final io.vertx.lang.rx.TypeArg<JWTAuth> __TYPE_ARG
public String toString()
toString
in class AuthenticationProvider
public boolean equals(Object o)
equals
in class AuthenticationProvider
public int hashCode()
hashCode
in class AuthenticationProvider
public JWTAuth getDelegate()
getDelegate
in class AuthenticationProvider
public static JWTAuth create(Vertx vertx, JWTAuthOptions config)
vertx
- the Vertx instanceconfig
- the configpublic String generateToken(JsonObject claims, JWTOptions options)
claims
- Json with user defined claims for a list of official claimsoptions
- extra options for the generationpublic String generateToken(JsonObject claims)
claims
- Json with user defined claims for a list of official claimsCopyright © 2023 Eclipse. All rights reserved.