Package io.vertx.up.secure
Interface ZaaS
public interface ZaaS
ZaaS -> Zero Authenticate and Authorization Service
Interface defined for component
-
Method Summary
Modifier and TypeMethodDescriptiondefault io.vertx.core.Future<Boolean>authorize(io.vertx.core.json.JsonObject user) 3.default io.vertx.core.Future<io.vertx.core.json.JsonObject>store(io.vertx.core.json.JsonObject data) 1.default io.vertx.core.Future<Boolean>verify(io.vertx.core.json.JsonObject data) 2.
-
Method Details
-
store
default io.vertx.core.Future<io.vertx.core.json.JsonObject> store(io.vertx.core.json.JsonObject data) 1. When you login into system successfully, you can store token in to: 1) Redis 2) Database 3) Etcd As you want.- Parameters:
data- Stored token information
-
verify
2. 401 Access, verify the token that you provided. 1) Correct ? 2) Expired ? 3) Signature valid ?- Parameters:
data- The stored token data here- Returns:
- Whether it's valid
-
authorize
3. 403 Access, verify the resource access Optional workflow: default return true means no access
-