Class SSLStoreFilesModificationWatcher
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.server.util.SSLStoreFilesModificationWatcher
-
- All Implemented Interfaces:
Runnable
public class SSLStoreFilesModificationWatcher extends Object implements Runnable
FileWatcher monitoring changes to SSL keyStore/trustStore files. If a keyStore/trustStore file is set to null, it will be ignored. If a keyStore/trustStore file is deleted, it will be considered not modified.
-
-
Constructor Summary
Constructors Constructor Description SSLStoreFilesModificationWatcher(String keyStore, String trustStore, Runnable onModificationRunnable)
Create a FileWatcher on keyStore/trustStore
-
-
-
Constructor Detail
-
SSLStoreFilesModificationWatcher
public SSLStoreFilesModificationWatcher(String keyStore, String trustStore, Runnable onModificationRunnable)
Create a FileWatcher on keyStore/trustStore- Parameters:
keyStore
- path to the keyStore file or null to ignoretrustStore
- path to the trustStore file or null to ignoreonModificationRunnable
- function to run when a modification to the keyStore or trustStore is detected
-
-