Interface ZaaS


  • public interface ZaaS
    ZaaS -> Zero Authenticate and Authorization Service Interface defined for component
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default 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 Detail

      • 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

        default io.vertx.core.Future<Boolean> verify​(io.vertx.core.json.JsonObject data)
        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

        default io.vertx.core.Future<Boolean> authorize​(io.vertx.core.json.JsonObject user)
        3. 403 Access, verify the resource access Optional workflow: default return true means no access