Package org.cryptomator.cryptofs
Class CryptoFileSystemUri
- java.lang.Object
-
- org.cryptomator.cryptofs.CryptoFileSystemUri
-
public class CryptoFileSystemUri extends Object
Utility to handle
URIs used by theCryptoFileSystemProvider.CryptoFileSystem URIs are hierachical URIs with the scheme cryptomator, the absolute path to a vault in URI representation as Authority and a path which is the path to a directory or file inside the vault. As hierarchical URIs have the syntax
[scheme
:][//authority/][path][?query][#fragment]this leads to cryptomator URIs of the form
cryptomator
://file:%2F%2Fpath%2Fto%2Fvault%2Fas%2Furi/path/inside/vault- Author:
- Markus Kreusch
-
-
Field Summary
Fields Modifier and Type Field Description static StringURI_SCHEME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static URIcreate(Path pathToVault, String... pathComponentsInsideVault)Constructs a CryptoFileSystem URI by using the given absolute path to a vault and constructing a path inside the vault from components.StringpathInsideVault()PathpathToVault()
-
-
-
Field Detail
-
URI_SCHEME
public static final String URI_SCHEME
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static URI create(Path pathToVault, String... pathComponentsInsideVault)
Constructs a CryptoFileSystem URI by using the given absolute path to a vault and constructing a path inside the vault from components.- Parameters:
pathToVault- path to the vaultpathComponentsInsideVault- path components to node inside the vault
-
pathToVault
public Path pathToVault()
-
pathInsideVault
public String pathInsideVault()
-
-