protected void setStandardAttributes(final HttpServletRequest request, final HttpServletResponse response, final WebManager webManager)
    {
        final String csrf = StringUtils.randomString(16);
        CookieUtils.setCookie(request, response, "csrf", csrf, -1);
        request.setAttribute("csrf", csrf);

        request.setAttribute("isEnabled", CertificateExpiryChecker.ENABLED.getValue());
        request.setAttribute("isNotifyAdmins", CertificateExpiryChecker.NOTIFY_ADMINS.getValue());
        request.setAttribute("frequencyHours", CertificateExpiryChecker.FREQUENCY.getValue().toHours());
        request.setAttribute("warningPeriodHours", CertificateExpiryChecker.WARNING_PERIOD.getValue().toHours());
    }
Servlet for the admin console page that configures the automated, continuous checks of TLS certificate expiry.

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/main/java/org/jivesoftware/admin/servlet/CertificateExpirtyCheckerServlet.java