Class CertificateStoreWatcher
- java.lang.Object
-
- org.jivesoftware.openfire.keystore.CertificateStoreWatcher
-
public class CertificateStoreWatcher extends Object
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 Modifier and Type Field Description static SystemProperty<Boolean>
ENABLED
-
Constructor Summary
Constructors Constructor Description CertificateStoreWatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
ENABLED
public static final SystemProperty<Boolean> ENABLED
-
-
Method Detail
-
destroy
public void destroy()
Shuts down this watcher, releasing all resources.
-
watch
public void watch(CertificateStore store)
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
public void unwatch(CertificateStore store)
Stop watching the file that backs a Certificate Store for changes- Parameters:
store
- The certificate store (cannot be null).
-
-