Package org.jivesoftware.util.cert
Class CertificateExpiryChecker
java.lang.Object
org.jivesoftware.openfire.container.BasicModule
org.jivesoftware.util.cert.CertificateExpiryChecker
- All Implemented Interfaces:
Module
Periodically evaluates the TLS certificates in all identity stores of Openfire. Sends out a warning (in the form of
an XMPP message) to all server administrators when a certificate is detected that is expired, or is about to expire.
- Author:
- Guus der Kinderen, guus@goodbytes.nl
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SystemProperty<Boolean>
Enables or disabled the period check for expiry of Openfire's TLS certificates.static final SystemProperty<Duration>
How often to check for (nearly) expired TLS certificates.static final SystemProperty<Boolean>
Determines if the administrators receive a message when an (almost) expired TLS certificate is detected.static final SystemProperty<Duration>
How long before a TLS certificate will expire a warning is to be sent out to admins. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jivesoftware.openfire.container.BasicModule
destroy, getName, initialize
-
Field Details
-
ENABLED
Enables or disabled the period check for expiry of Openfire's TLS certificates. -
NOTIFY_ADMINS
Determines if the administrators receive a message when an (almost) expired TLS certificate is detected. -
FREQUENCY
How often to check for (nearly) expired TLS certificates. -
WARNING_PERIOD
How long before a TLS certificate will expire a warning is to be sent out to admins.
-
-
Constructor Details
-
CertificateExpiryChecker
public CertificateExpiryChecker()
-
-
Method Details
-
start
Description copied from class:BasicModule
Starts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
- Specified by:
start
in interfaceModule
- Overrides:
start
in classBasicModule
- Throws:
IllegalStateException
- If start is called before initialize successfully returns
-
stop
public void stop()Description copied from class:BasicModule
Stops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
- Specified by:
stop
in interfaceModule
- Overrides:
stop
in classBasicModule
-