Package cn.vertxup.rbac.service.jwt
Class JwtService
- java.lang.Object
-
- cn.vertxup.rbac.service.jwt.JwtService
-
-
Constructor Summary
Constructors Constructor Description JwtService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.Future<io.vertx.core.json.JsonObject>store(String userKey, io.vertx.core.json.JsonObject data)1.io.vertx.core.Future<Boolean>verify(String userKey, String token)
-
-
-
Method Detail
-
store
public io.vertx.core.Future<io.vertx.core.json.JsonObject> store(String userKey, io.vertx.core.json.JsonObject data)
Description copied from interface:JwtStub1. When you login into system successfully, you can store token in to: 1) Redis 2) Database 3) Etcd As you want. 「Optional」 Default for optional, Not Implement Situation: 1. When micro service api gateway use security interface -- The store code logical will call remote Rpc service or Http service to store authenticate information 2. Sometimes the storage could not be implemented in default situation.
-
-