Class AuthorizationFilter

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

    public class AuthorizationFilter
    extends java.lang.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.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void disableForTests()  
      void filter​(javax.ws.rs.container.ContainerRequestContext requestContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthorizationFilter

        public AuthorizationFilter()
    • Method Detail

      • filter

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

        public static void disableForTests()