]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/util/TimeConditions.java
Add a hint what the "Request reping" is used for on the email page
[gigi.git] / src / org / cacert / gigi / util / TimeConditions.java
index dce98001b0de3a2bc92ea6afa3a11b1f51ab3bde..b851dc9d83e6d99bf634083599fc1ce805d948b3 100644 (file)
@@ -16,11 +16,14 @@ public class TimeConditions {
 
     private final int verificationMaxAgeMonths;
 
+    private final int emailPingMonths;
+
     private TimeConditions(Properties ppts) {
         testValidMonths = Integer.parseInt(ppts.getProperty("time.testValidMonths", "12"));
         reverificationDays = Integer.parseInt(ppts.getProperty("time.reverificationDays", "90"));
         verificationFreshMonths = Integer.parseInt(ppts.getProperty("time.verificationFreshMonths", "39"));
         verificationMaxAgeMonths = Integer.parseInt(ppts.getProperty("time.verificationMaxAgeMonths", "24"));
+        emailPingMonths = Integer.parseInt(ppts.getProperty("time.emailPingMonths", "6"));
     }
 
     public static synchronized TimeConditions getInstance() {
@@ -76,4 +79,13 @@ public class TimeConditions {
         return verificationMaxAgeMonths;
     }
 
+    /**
+     * Maximum time in months that an email address can be used for creating
+     * client certificates before a reping is neccessary
+     * 
+     * @return the configured number of months
+     */
+    public int getEmailPingMonths() {
+        return emailPingMonths;
+    }
 }