Package org.onlab.rest
Class AuthorizationFilter
- java.lang.Object
-
- org.onlab.rest.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.
-
-
Constructor Summary
Constructors Constructor Description AuthorizationFilter()
-
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)
-