]> WPIA git - gigi.git/blobdiff - src/club/wpia/gigi/pages/main/KeyCompromisePage.java
add: process to report compromised certificates
[gigi.git] / src / club / wpia / gigi / pages / main / KeyCompromisePage.java
diff --git a/src/club/wpia/gigi/pages/main/KeyCompromisePage.java b/src/club/wpia/gigi/pages/main/KeyCompromisePage.java
new file mode 100644 (file)
index 0000000..c36b176
--- /dev/null
@@ -0,0 +1,30 @@
+package club.wpia.gigi.pages.main;
+
+import java.io.IOException;
+import java.util.HashMap;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import club.wpia.gigi.pages.ManagedFormPage;
+import club.wpia.gigi.util.AuthorizationContext;
+
+public class KeyCompromisePage extends ManagedFormPage {
+
+    public static final String PATH = "/keyCompromise";
+
+    public KeyCompromisePage() {
+        super("Report Key Compromise", KeyCompromiseForm.class);
+    }
+
+    @Override
+    public boolean isPermitted(AuthorizationContext ac) {
+        return true;
+    }
+
+    @Override
+    public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
+        new KeyCompromiseForm(req).output(resp.getWriter(), getLanguage(req), new HashMap<String, Object>());
+    }
+
+}