Package io.vertx.reactivex.ext.auth.jwt
Class JWTAuth
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.authentication.AuthenticationProvider
-
- io.vertx.reactivex.ext.auth.jwt.JWTAuth
-
public class JWTAuth extends AuthenticationProvider
Factory interface for creating JWT basedAuthenticationProvider
instances.NOTE: This class has been automatically generated from the
original
non 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 JWTAuth
create(Vertx vertx, JWTAuthOptions config)
Create a JWT auth providerboolean
equals(Object o)
String
generateToken(JsonObject claims)
Generate a new JWT token.String
generateToken(JsonObject claims, JWTOptions options)
Generate a new JWT token.JWTAuth
getDelegate()
int
hashCode()
static JWTAuth
newInstance(JWTAuth arg)
String
toString()
-
Methods inherited from class io.vertx.reactivex.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:
toString
in classAuthenticationProvider
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAuthenticationProvider
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAuthenticationProvider
-
getDelegate
public JWTAuth getDelegate()
- Overrides:
getDelegate
in 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
-
-