io.vertx.ext.auth.authorization

## Interface PermissionBasedAuthorization

- All Superinterfaces:
    Authorization

      public interface PermissionBasedAuthorization
      extends Authorization

  Represents a permission Note that the permission can optionally be assigned to a specific resource
  Author:
    Stephane Bastian

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static PermissionBasedAuthorization` | `create(String permission)`
    `String` | `getPermission()` returns the value of the permission
    `String` | `getResource()` returns an optional resource that the permission is assigned-on
    `PermissionBasedAuthorization` | `setResource(String resource)` sets an optional resource that the permission is assigned-on

    - ### Methods inherited from interface io.vertx.ext.auth.authorization.Authorization

      `match, match, verify`

- - ### Method Detail

    - #### create

          static PermissionBasedAuthorization create(String permission)

    - #### getPermission

          String getPermission()

      returns the value of the permission
      Returns:

    - #### getResource

          String getResource()

      returns an optional resource that the permission is assigned-on
      Returns:

    - #### setResource

          PermissionBasedAuthorization setResource(String resource)

      sets an optional resource that the permission is assigned-on
      Returns:

Copyright © 2020 Eclipse. All rights reserved.