aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2018-11-21 12:04:21 +0100
committerBjørn Christian Seime <bjorncs@oath.com>2018-11-27 13:08:17 +0100
commit6d4ec80d66386f2c9252feee569cf7e0ac5a34e6 (patch)
tree861bf9873da4d6e97ab963b95b858b8345355512 /controller-server/src
parentca35f62b99a36442be1e9b46d217b176d5a37122 (diff)
Add noop security filter for controller
Diffstat (limited to 'controller-server/src')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/filter/NoopFilter.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/filter/NoopFilter.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/filter/NoopFilter.java
new file mode 100644
index 00000000000..4739df26604
--- /dev/null
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/filter/NoopFilter.java
@@ -0,0 +1,19 @@
+// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.vespa.hosted.controller.restapi.filter;
+
+import com.yahoo.jdisc.handler.ResponseHandler;
+import com.yahoo.jdisc.http.filter.DiscFilterRequest;
+import com.yahoo.jdisc.http.filter.SecurityRequestFilter;
+
+/**
+ * A no-op filter. Used for bindings that are whitelisted and do not require any authorization.
+ *
+ * @author bjorncs
+ */
+@SuppressWarnings("unused") // Injected
+public class NoopFilter implements SecurityRequestFilter {
+
+ @Override
+ public void filter(DiscFilterRequest request, ResponseHandler handler) {}
+
+}