Package io.vertx.mutiny.ext.auth.jwt
Class JWTAuth
java.lang.Object
io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
io.vertx.mutiny.ext.auth.jwt.JWTAuth
- All Implemented Interfaces:
MutinyDelegate
Factory interface for creating JWT based
AuthenticationProvider
instances.
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JWTAuth
boolean
generateToken
(io.vertx.core.json.JsonObject claims) generateToken
(io.vertx.core.json.JsonObject claims, io.vertx.ext.auth.JWTOptions options) io.vertx.ext.auth.jwt.JWTAuth
int
hashCode()
static JWTAuth
newInstance
(io.vertx.ext.auth.jwt.JWTAuth arg) toString()
Methods inherited from class io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
authenticate, authenticate, authenticateAndAwait, authenticateAndAwait, authenticateAndForget, authenticateAndForget, newInstance
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
JWTAuth
public JWTAuth(io.vertx.ext.auth.jwt.JWTAuth delegate) -
JWTAuth
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.jwt.JWTAuth getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Overrides:
getDelegate
in classAuthenticationProvider
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toString
in classAuthenticationProvider
-
equals
- Overrides:
equals
in classAuthenticationProvider
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAuthenticationProvider
-
create
- Parameters:
vertx
- the Vertx instanceconfig
- the config- Returns:
- the auth provider
-
generateToken
public String generateToken(io.vertx.core.json.JsonObject claims, io.vertx.ext.auth.JWTOptions options) - Parameters:
claims
- Json with user defined claims for a list of official claimsoptions
- extra options for the generation- Returns:
- JWT encoded token
-
generateToken
- Parameters:
claims
- Json with user defined claims for a list of official claims- Returns:
- JWT encoded token
-
newInstance
-