io.vertx.ext.auth.authorization

## Interface RoleBasedAuthorization

- All Superinterfaces:
    Authorization

      public interface RoleBasedAuthorization
      extends Authorization

  Represents a role. Note that this role 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 RoleBasedAuthorization` | `create(String role)`
    `String` | `getResource()` returns an optional resource that the role is assigned-on
    `String` | `getRole()` returns the role
    `RoleBasedAuthorization` | `setResource(String resource)` sets an optional resource that the role is assigned-on

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

      `match, match, verify`

- - ### Method Detail

    - #### create

          static RoleBasedAuthorization create(String role)

    - #### getRole

          String getRole()

      returns the role
      Returns:

    - #### getResource

          String getResource()

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

    - #### setResource

          RoleBasedAuthorization setResource(String resource)

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

Copyright © 2025 Eclipse. All rights reserved.