From afa289cbcce4a431f6bd587b490b6470ed6caa50 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 18 Sep 2017 12:38:24 +0200 Subject: change expiration offset to 15 days before actual certificate expires --- .../java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main/java/se/leap/bitmaskclient/eip') diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java b/app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java index 709dda34..28099f06 100644 --- a/app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java +++ b/app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java @@ -38,7 +38,7 @@ public class VpnCertificateValidator { /** * - * @return true if there's a certificate that is valid for more than 3 more months + * @return true if there's a certificate that is valid for more than 15 more days */ public boolean isValid() { if (certificate.isEmpty()) { @@ -69,8 +69,8 @@ public class VpnCertificateValidator { if (startDate.getTime() >= limitDate.getTime().getTime()) { return limitDate; } - // else add an offset of 3 months to the current date - limitDate.add(Calendar.MONTH, 3); + // else add an offset of 15 days to the current date + limitDate.add(Calendar.DAY_OF_YEAR, 15); return limitDate; } -- cgit v1.2.3