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
-
public class JWTAuth extends AuthenticationProvider
Factory interface for creating JWT basedAuthenticationProvider
instances. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<JWTAuth>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JWTAuth
create(Vertx vertx, io.vertx.ext.auth.jwt.JWTAuthOptions config)
boolean
equals(Object o)
String
generateToken(io.vertx.core.json.JsonObject claims)
String
generateToken(io.vertx.core.json.JsonObject claims, io.vertx.ext.auth.JWTOptions options)
io.vertx.ext.auth.jwt.JWTAuth
getDelegate()
int
hashCode()
static JWTAuth
newInstance(io.vertx.ext.auth.jwt.JWTAuth arg)
String
toString()
-
Methods inherited from class io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
authenticate, authenticate, authenticateAndAwait, authenticateAndAwait, authenticateAndForget, authenticateAndForget, newInstance
-
-
-
-
Constructor Detail
-
JWTAuth
public JWTAuth(io.vertx.ext.auth.jwt.JWTAuth delegate)
-
JWTAuth
public JWTAuth(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.jwt.JWTAuth getDelegate()
- Overrides:
getDelegate
in classAuthenticationProvider
-
toString
public String toString()
- Overrides:
toString
in classAuthenticationProvider
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAuthenticationProvider
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAuthenticationProvider
-
create
public static JWTAuth create(Vertx vertx, io.vertx.ext.auth.jwt.JWTAuthOptions config)
- 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
public String generateToken(io.vertx.core.json.JsonObject claims)
- Parameters:
claims
- Json with user defined claims for a list of official claims- Returns:
- JWT encoded token
-
newInstance
public static JWTAuth newInstance(io.vertx.ext.auth.jwt.JWTAuth arg)
-
-