Class CertificateStoreWatcher
java.lang.Object
org.jivesoftware.openfire.keystore.CertificateStoreWatcher
Detects file-system based changes to (Java) keystores that back Openfire Certificate Stores, reloading them when
needed.
- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Shuts down this watcher, releasing all resources.void
unwatch
(CertificateStore store) Stop watching the file that backs a Certificate Store for changesvoid
watch
(CertificateStore store) Start watching the file that backs a Certificate Store for changes, reloading the Certificate Store when appropriate.
-
Field Details
-
ENABLED
-
-
Constructor Details
-
CertificateStoreWatcher
public CertificateStoreWatcher()
-
-
Method Details
-
destroy
public void destroy()Shuts down this watcher, releasing all resources. -
watch
Start watching the file that backs a Certificate Store for changes, reloading the Certificate Store when appropriate. This method does nothing when the file watching functionality is not supported by the file system.- Parameters:
store
- The certificate store (cannot be null).
-
unwatch
Stop watching the file that backs a Certificate Store for changes- Parameters:
store
- The certificate store (cannot be null).
-