public interface Security
Interface defined for component
| Modifier and Type | Method and Description |
|---|---|
default io.vertx.core.Future<Boolean> |
access(io.vertx.core.json.JsonObject user)
403 Access, verify the resource access Optional workflow: default return true means no access
|
default io.vertx.core.Future<io.vertx.core.json.JsonObject> |
store(io.vertx.core.json.JsonObject data)
When you login into system successfully, you can store token in to: 1) Redis 2) Database 3) Etcd As you want.
|
io.vertx.core.Future<Boolean> |
verify(io.vertx.core.json.JsonObject data)
401 Access, verify the token that you provided.
|
default io.vertx.core.Future<io.vertx.core.json.JsonObject> store(io.vertx.core.json.JsonObject data)
data - Stored token informationio.vertx.core.Future<Boolean> verify(io.vertx.core.json.JsonObject data)
data - The stored token data heredefault io.vertx.core.Future<Boolean> access(io.vertx.core.json.JsonObject user)
Copyright © 2021. All rights reserved.