public static URI create ( Path pathToVault , String ... pathComponentsInsideVault ) { try { return new URI ( URI_SCHEME , pathToVault . toUri ( ) . toString ( ) , "/" + String . join ( "/" , pathComponentsInsideVault ) , null , null ) ; } catch ( URISyntaxException e ) { throw new IllegalArgumentException ( "Can not create URI from given input" , e ) ; } }
Constructs a CryptoFileSystem URI by using the given absolute path to a vault and constructing a path inside the vault from components .