diff options
Diffstat (limited to 'src/mongo/util/net/ssl_expiration.h')
-rw-r--r-- | src/mongo/util/net/ssl_expiration.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/mongo/util/net/ssl_expiration.h b/src/mongo/util/net/ssl_expiration.h index ac6f30cd039..fc56c3968c7 100644 --- a/src/mongo/util/net/ssl_expiration.h +++ b/src/mongo/util/net/ssl_expiration.h @@ -32,27 +32,27 @@ namespace mongo { - class CertificateExpirationMonitor : public PeriodicTask { - public: - explicit CertificateExpirationMonitor(Date_t date); - - /** - * Gets the PeriodicTask's name. - * @return CertificateExpirationMonitor's name. - */ - virtual std::string taskName() const; - - /** - * Wakes up every minute as it is a PeriodicTask. - * Checks once a day if the server certificate has expired - * or will expire in the next 30 days and sends a warning - * to the log accordingly. - */ - virtual void taskDoWork(); - - private: - const Date_t _certExpiration; - Date_t _lastCheckTime; - }; +class CertificateExpirationMonitor : public PeriodicTask { +public: + explicit CertificateExpirationMonitor(Date_t date); + + /** + * Gets the PeriodicTask's name. + * @return CertificateExpirationMonitor's name. + */ + virtual std::string taskName() const; + + /** + * Wakes up every minute as it is a PeriodicTask. + * Checks once a day if the server certificate has expired + * or will expire in the next 30 days and sends a warning + * to the log accordingly. + */ + virtual void taskDoWork(); + +private: + const Date_t _certExpiration; + Date_t _lastCheckTime; +}; } // namespace mongo |