public interface Migrator
- Since:
- 1.4.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidmigrate(Path vaultRoot, String vaultConfigFilename, String masterkeyFilename, CharSequence passphrase) Performs the migration this migrator is built for.default voidmigrate(Path vaultRoot, String vaultConfigFilename, String masterkeyFilename, CharSequence passphrase, MigrationProgressListener progressListener) Performs the migration this migrator is built for.voidmigrate(Path vaultRoot, String vaultConfigFilename, String masterkeyFilename, CharSequence passphrase, MigrationProgressListener progressListener, MigrationContinuationListener continuationListener) Performs the migration this migrator is built for.
-
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.InvalidPassphraseExceptionorg.cryptomator.cryptolib.api.UnsupportedVaultFormatExceptionorg.cryptomator.cryptolib.api.CryptoExceptionIOException
-
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.InvalidPassphraseExceptionorg.cryptomator.cryptolib.api.UnsupportedVaultFormatExceptionorg.cryptomator.cryptolib.api.CryptoExceptionIOException
-
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.InvalidPassphraseExceptionorg.cryptomator.cryptolib.api.UnsupportedVaultFormatExceptionorg.cryptomator.cryptolib.api.CryptoExceptionIOException
-