Class JWTAuth
java.lang.Object
io.vertx.reactivex.ext.auth.authentication.AuthenticationProvider
io.vertx.reactivex.ext.auth.jwt.JWTAuth
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
Factory interface for creating JWT based
AuthenticationProvider instances.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JWTAuthcreate(Vertx vertx, JWTAuthOptions config) Create a JWT auth providerbooleangenerateToken(JsonObject claims) Generate a new JWT token.generateToken(JsonObject claims, JWTOptions options) Generate a new JWT token.inthashCode()static JWTAuthnewInstance(JWTAuth arg) toString()Methods inherited from class AuthenticationProvider
authenticate, newInstance, rxAuthenticate
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
JWTAuth
-
JWTAuth
-
-
Method Details
-
toString
- Overrides:
toStringin classAuthenticationProvider
-
equals
- Overrides:
equalsin classAuthenticationProvider
-
hashCode
public int hashCode()- Overrides:
hashCodein classAuthenticationProvider
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classAuthenticationProvider
-
create
Create a JWT auth provider- Parameters:
vertx- the Vertx instanceconfig- the config- Returns:
- the auth provider
-
generateToken
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
Generate a new JWT token.- Parameters:
claims- Json with user defined claims for a list of official claims- Returns:
- JWT encoded token
-
newInstance
-