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 Details

    • 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: