Class CryptoFileSystem

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public abstract class CryptoFileSystem
    extends FileSystem
    A FileSystem which 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 Path and 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 Detail

      • getPathToVault

        public abstract Path getPathToVault()
        Provides the Path to 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 this CryptoFileSystem.

        Returns:
        the Path to the directory containing the encrypted files.