Class AuthorizationFilter

  • All Implemented Interfaces:
    javax.ws.rs.container.ContainerRequestFilter

    public class AuthorizationFilter
    extends Object
    implements javax.ws.rs.container.ContainerRequestFilter
    Filter that performs authorization checks on all incoming REST API requests. Methods with modify semantics require 'admin' role; all others require 'viewer' role.
    • Constructor Detail

      • AuthorizationFilter

        public AuthorizationFilter()
    • Method Detail

      • filter

        public void filter​(javax.ws.rs.container.ContainerRequestContext requestContext)
                    throws IOException
        Specified by:
        filter in interface javax.ws.rs.container.ContainerRequestFilter
        Throws:
        IOException
      • disableForTests

        public static void disableForTests()