Class HasRoleFilter

All Implemented Interfaces:
jakarta.ws.rs.container.ContainerRequestFilter

@Priority(2000) public class HasRoleFilter extends AbstractAuthorizationFilter
Ensures the user has a given role.

An instance of this class needs to be registered through a DynamicFeature, or a subclass needs to be created to be able to create and use a name binding.

  • Constructor Details

    • HasRoleFilter

      public HasRoleFilter(String role)
      Constructs a filter that checks for the given role.
  • Method Details