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 Details

    • 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 ignore
      trustStore - path to the trustStore file or null to ignore
      onModificationRunnable - function to run when a modification to the keyStore or trustStore is detected
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable