Search in sources :

Example 1 with CryptoFileSystemProperties

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;
}
Also used : CryptoFileSystem(org.cryptomator.cryptofs.CryptoFileSystem) CryptoFileSystemProperties(org.cryptomator.cryptofs.CryptoFileSystemProperties)

Aggregations

CryptoFileSystem (org.cryptomator.cryptofs.CryptoFileSystem)1 CryptoFileSystemProperties (org.cryptomator.cryptofs.CryptoFileSystemProperties)1