Package io.vertx.rxjava3.ext.auth.jwt
Class JWTAuth
- java.lang.Object
-
- io.vertx.rxjava3.ext.auth.authentication.AuthenticationProvider
-
- io.vertx.rxjava3.ext.auth.jwt.JWTAuth
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
public class JWTAuth extends AuthenticationProvider implements io.vertx.lang.rx.RxDelegate
Factory interface for creating JWT basedAuthenticationProviderinstances.NOTE: This class has been automatically generated from the
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<JWTAuth>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JWTAuthcreate(Vertx vertx, JWTAuthOptions config)Create a JWT auth providerbooleanequals(Object o)StringgenerateToken(JsonObject claims)Generate a new JWT token.StringgenerateToken(JsonObject claims, JWTOptions options)Generate a new JWT token.JWTAuthgetDelegate()inthashCode()static JWTAuthnewInstance(JWTAuth arg)StringtoString()-
Methods inherited from class io.vertx.rxjava3.ext.auth.authentication.AuthenticationProvider
authenticate, newInstance, rxAuthenticate
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<JWTAuth> __TYPE_ARG
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classAuthenticationProvider
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAuthenticationProvider
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAuthenticationProvider
-
getDelegate
public JWTAuth getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classAuthenticationProvider
-
create
public static JWTAuth create(Vertx vertx, JWTAuthOptions config)
Create a JWT auth provider- Parameters:
vertx- the Vertx instanceconfig- the config- Returns:
- the auth provider
-
generateToken
public String generateToken(JsonObject claims, JWTOptions options)
Generate a new JWT token.- Parameters:
claims- Json with user defined claims for a list of official claimsoptions- extra options for the generation- Returns:
- JWT encoded token
-
generateToken
public String generateToken(JsonObject claims)
Generate a new JWT token.- Parameters:
claims- Json with user defined claims for a list of official claims- Returns:
- JWT encoded token
-
-