fix: clean up "SECURE_REFERENCE"-Page
authorFelix Dörre <felix@dogcraft.de>
Fri, 1 Dec 2017 15:19:45 +0000 (16:19 +0100)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Sun, 3 Dec 2017 13:01:28 +0000 (14:01 +0100)
Change-Id: I866cb02ae3c8206c29dba980fc35f01f4c527585

src/club/wpia/gigi/Gigi.java
src/club/wpia/gigi/pages/TestSecure.java [deleted file]

index 6a0b793..2c61c07 100644 (file)
@@ -47,7 +47,6 @@ import club.wpia.gigi.pages.Page;
 import club.wpia.gigi.pages.PasswordResetPage;
 import club.wpia.gigi.pages.RootCertPage;
 import club.wpia.gigi.pages.StaticPage;
-import club.wpia.gigi.pages.TestSecure;
 import club.wpia.gigi.pages.Verify;
 import club.wpia.gigi.pages.account.ChangePasswordPage;
 import club.wpia.gigi.pages.account.FindAgentAccess;
@@ -144,7 +143,6 @@ public final class Gigi extends HttpServlet {
             putPage(RegisterPage.PATH, new RegisterPage(), mainMenu);
             putPage(KeyCompromisePage.PATH, new KeyCompromisePage(), mainMenu);
 
-            putPage("/secure", new TestSecure(), null);
             putPage(Verify.PATH, new Verify(), null);
             Menu certificates = createMenu("Certificates");
             putPage(Certificates.PATH + "/*", new Certificates(false), certificates);
diff --git a/src/club/wpia/gigi/pages/TestSecure.java b/src/club/wpia/gigi/pages/TestSecure.java
deleted file mode 100644 (file)
index 22790fe..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-package club.wpia.gigi.pages;
-
-import java.io.IOException;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-public class TestSecure extends Page {
-
-    public TestSecure() {
-        super("Secure testpage");
-    }
-
-    @Override
-    public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
-        resp.getWriter().println("This page is secure.");
-        Object attribute = req.getAttribute("javax.servlet.request.X509Certificate");
-        resp.getWriter().println(attribute);
-        if (attribute != null) {
-            resp.getWriter().println(((Object[]) attribute).length);
-        }
-    }
-
-}