public interface Migrator
Since:
1.4.0
  • Method Details

    • migrate

      default void migrate(Path vaultRoot, String vaultConfigFilename, String masterkeyFilename, CharSequence passphrase) throws org.cryptomator.cryptolib.api.InvalidPassphraseException, org.cryptomator.cryptolib.api.UnsupportedVaultFormatException, org.cryptomator.cryptolib.api.CryptoException, IOException
      Performs the migration this migrator is built for.
      Parameters:
      vaultRoot -
      vaultConfigFilename -
      masterkeyFilename -
      passphrase -
      Throws:
      org.cryptomator.cryptolib.api.InvalidPassphraseException
      org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
      org.cryptomator.cryptolib.api.CryptoException
      IOException
    • migrate

      default void migrate(Path vaultRoot, String vaultConfigFilename, String masterkeyFilename, CharSequence passphrase, MigrationProgressListener progressListener) throws org.cryptomator.cryptolib.api.InvalidPassphraseException, org.cryptomator.cryptolib.api.UnsupportedVaultFormatException, org.cryptomator.cryptolib.api.CryptoException, IOException
      Performs the migration this migrator is built for.
      Parameters:
      vaultRoot -
      vaultConfigFilename -
      masterkeyFilename -
      passphrase -
      progressListener -
      Throws:
      org.cryptomator.cryptolib.api.InvalidPassphraseException
      org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
      org.cryptomator.cryptolib.api.CryptoException
      IOException
    • migrate

      void migrate(Path vaultRoot, String vaultConfigFilename, String masterkeyFilename, CharSequence passphrase, MigrationProgressListener progressListener, MigrationContinuationListener continuationListener) throws org.cryptomator.cryptolib.api.InvalidPassphraseException, org.cryptomator.cryptolib.api.UnsupportedVaultFormatException, org.cryptomator.cryptolib.api.CryptoException, IOException
      Performs the migration this migrator is built for.
      Parameters:
      vaultRoot -
      vaultConfigFilename -
      masterkeyFilename -
      passphrase -
      progressListener -
      continuationListener -
      Throws:
      org.cryptomator.cryptolib.api.InvalidPassphraseException
      org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
      org.cryptomator.cryptolib.api.CryptoException
      IOException