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 basedAuthenticationProviderinstances. NOTE: This class has been automatically generated from theoriginalnon 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 JWTAuthcreate(Vertx vertx, io.vertx.ext.auth.jwt.JWTAuthOptions config)booleanequals(Object o)StringgenerateToken(io.vertx.core.json.JsonObject claims)StringgenerateToken(io.vertx.core.json.JsonObject claims, io.vertx.ext.auth.JWTOptions options)io.vertx.ext.auth.jwt.JWTAuthgetDelegate()inthashCode()static JWTAuthnewInstance(io.vertx.ext.auth.jwt.JWTAuth arg)StringtoString()-
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:
getDelegatein classAuthenticationProvider
-
toString
public String toString()
- Overrides:
toStringin classAuthenticationProvider
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAuthenticationProvider
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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)
-
-