use of org.cryptomator.cryptofs.CryptoFileSystemProperties in project cryptomator by cryptomator.
the class Vault method createCryptoFileSystem.
private CryptoFileSystem createCryptoFileSystem(CharSequence passphrase) throws IOException, CryptoException {
CryptoFileSystemProperties fsProps = //
CryptoFileSystemProperties.cryptoFileSystemProperties().withPassphrase(//
passphrase).withMasterkeyFilename(//
MASTERKEY_FILENAME).build();
CryptoFileSystem fs = CryptoFileSystemProvider.newFileSystem(getPath(), fsProps);
closer.closeLater(fs);
return fs;
}
Aggregations