Class CryptoFileSystemUri


  • public class CryptoFileSystemUri
    extends java.lang.Object

    Utility to handle URIs used by the CryptoFileSystemProvider.

    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 java.lang.String URI_SCHEME  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.net.URI create​(java.nio.file.Path pathToVault, java.lang.String... pathComponentsInsideVault)
      Constructs a CryptoFileSystem URI by using the given absolute path to a vault and constructing a path inside the vault from components.
      java.lang.String pathInsideVault()  
      java.nio.file.Path pathToVault()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static java.net.URI create​(java.nio.file.Path pathToVault,
                                          java.lang.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 vault
        pathComponentsInsideVault - path components to node inside the vault
      • pathToVault

        public java.nio.file.Path pathToVault()
      • pathInsideVault

        public java.lang.String pathInsideVault()