]> WPIA git - gigi.git/commitdiff
ADD: Rules of the WOT
authorJanis Streib <janis@dogcraft.de>
Sun, 24 Aug 2014 04:51:42 +0000 (06:51 +0200)
committerFelix Dörre <felix@dogcraft.de>
Sun, 24 Aug 2014 05:17:23 +0000 (07:17 +0200)
src/org/cacert/gigi/Gigi.java
src/org/cacert/gigi/pages/StaticPage.java [new file with mode: 0644]
src/org/cacert/gigi/pages/wot/Rules.templ [new file with mode: 0644]

index e56ead30b2a867fd8296a6359b10977c9c03720f..3f3cb95496c95477021dfff51a0d6fe36b878132 100644 (file)
@@ -24,6 +24,7 @@ import org.cacert.gigi.output.template.Template;
 import org.cacert.gigi.pages.LoginPage;
 import org.cacert.gigi.pages.MainPage;
 import org.cacert.gigi.pages.Page;
 import org.cacert.gigi.pages.LoginPage;
 import org.cacert.gigi.pages.MainPage;
 import org.cacert.gigi.pages.Page;
+import org.cacert.gigi.pages.StaticPage;
 import org.cacert.gigi.pages.TestSecure;
 import org.cacert.gigi.pages.Verify;
 import org.cacert.gigi.pages.account.CertificateAdd;
 import org.cacert.gigi.pages.TestSecure;
 import org.cacert.gigi.pages.Verify;
 import org.cacert.gigi.pages.account.CertificateAdd;
@@ -85,6 +86,7 @@ public class Gigi extends HttpServlet {
             putPage(MailOverview.DEFAULT_PATH, new MailOverview("My email addresses"), "Certificates");
             putPage(DomainOverview.PATH, new DomainOverview("Domains"), "Certificates");
             putPage(MyPoints.PATH, new MyPoints("My Points"), "CAcert Web of Trust");
             putPage(MailOverview.DEFAULT_PATH, new MailOverview("My email addresses"), "Certificates");
             putPage(DomainOverview.PATH, new DomainOverview("Domains"), "Certificates");
             putPage(MyPoints.PATH, new MyPoints("My Points"), "CAcert Web of Trust");
+            putPage("/wot/rules", new StaticPage("CAcert Web of Trust Rules", AssurePage.class.getResourceAsStream("Rules.templ")), "CAcert Web of Trust");
             baseTemplate = new Template(Gigi.class.getResource("Gigi.templ"));
             rootMenu = new Menu("Main");
             for (Menu menu : categories) {
             baseTemplate = new Template(Gigi.class.getResource("Gigi.templ"));
             rootMenu = new Menu("Main");
             for (Menu menu : categories) {
diff --git a/src/org/cacert/gigi/pages/StaticPage.java b/src/org/cacert/gigi/pages/StaticPage.java
new file mode 100644 (file)
index 0000000..f4d824c
--- /dev/null
@@ -0,0 +1,28 @@
+package org.cacert.gigi.pages;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.util.HashMap;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.cacert.gigi.output.template.Template;
+
+public class StaticPage extends Page {
+
+    private Template content;
+
+    public StaticPage(String title, InputStream content) {
+        super(title);
+        this.content = new Template(new InputStreamReader(content));
+    }
+
+    @Override
+    public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
+        HashMap<String, Object> vars = new HashMap<String, Object>();
+        content.output(resp.getWriter(), getLanguage(req), vars);
+    }
+
+}
diff --git a/src/org/cacert/gigi/pages/wot/Rules.templ b/src/org/cacert/gigi/pages/wot/Rules.templ
new file mode 100644 (file)
index 0000000..9b61da6
--- /dev/null
@@ -0,0 +1,30 @@
+<h3><?=_CAcert Web of Trust Rules?></h3>
+
+<p><?=_It is essential that CAcert Assurers understand and follow the rules below to ensure that applicants for assurance are suitably identified, which, in turn, maintains trust in the system.?></p>
+
+<p><?=_Contact?><br>
+<br>
+* <?=_You must meet the applicant in person;?><br>
+* <?=_You must sight at least one form of government issued photo identification.  It's preferable if 2 forms of Government issued photo ID are presented, as less points may be issued if there is any doubt on the person by the person issuing points;?><br>
+* <?=_Complete the assurance form if the applicant has not already done so.  Ensure that all information matches.?><br>
+</p>
+
+<p><?=_Processing?><br>
+<?=_After the meeting, visit the CAcert Web site's make an Assurance page and:?><br>
+<br>
+* <?=_Enter the applicant's email address;?><br>
+* <?=_Compare the online information to the information recorded on the paper form;?><br>
+* <?=_If, and only if, the two match completely - you may award trust points up to the maximum points you are able to allocate;?><br>
+</p>
+
+<p><?=_Privacy?><br>
+<?=_It is imperative that you maintain the confidentiality and privacy of the applicant, and never disclose the information obtained without the applicant's consent.?></p>
+
+<p><?=_Fees?><br>
+<?=_You may charge a fee for your expenses if the applicant has been advised of the amount prior to the meeting.?></p>
+
+<p><?=_Liability?><br>
+<?=_A CAcert Assurer who knowingly, or reasonably ought to have known, assures an applicant contrary to this policy may be held liable.?></p>
+
+<p><?=_Assurance Points?><br>
+<?=_CAcert may, from time to time, alter the amount of Assurance Points that a class of assurer may assign as is necessary to effect a policy or rule change.  We may also alter the amount of Assurance Points available to an individual, or new class of assurer, should another policy of CAcert require this.?></p>