Package org.cryptomator.cryptofs
Class CryptoFileSystem
- java.lang.Object
-
- java.nio.file.FileSystem
-
- org.cryptomator.cryptofs.CryptoFileSystem
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public abstract class CryptoFileSystem extends FileSystem
AFileSystemwhich allows access to encrypted data in a directory.A CryptoFileSystem encrypts/decrypts data read/stored from/to it and uses a storage location for the encrypted data. The storage location is denoted by a
Pathand can thus be any location itself accessible via a java.nio.FileSystem.A CryptoFileSystem can be used as any other java.nio.FileSystem, e.g. by using the operations from
Files.- Author:
- Markus Kreusch
- See Also:
CryptoFileSystemProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract PathgetPathToVault()Provides thePathto the storage location of the vault - the location on the physical / delegate file system where encrypted data is stored.abstract CryptoFileSystemStatsgetStats()Provides file system performance statistics.-
Methods inherited from class java.nio.file.FileSystem
close, getFileStores, getPath, getPathMatcher, getRootDirectories, getSeparator, getUserPrincipalLookupService, isOpen, isReadOnly, newWatchService, provider, supportedFileAttributeViews
-
-
-
-
Method Detail
-
getPathToVault
public abstract Path getPathToVault()
Provides thePathto the storage location of the vault - the location on the physical / delegate file system where encrypted data is stored.This path has been passed in during creation and does not belong to this
CryptoFileSystem. Thus this path can not be used in operations on thisCryptoFileSystem.- Returns:
- the
Pathto the directory containing the encrypted files.
-
getStats
public abstract CryptoFileSystemStats getStats()
Provides file system performance statistics.- Returns:
- the
CryptoFileSystemStatscontaining performance statistics for thisCryptoFileSystem
-
-