@@ -58,8 +58,6 @@ public abstract class AbstractVault implements Vault {
5858
5959 public abstract Path getConfig ();
6060
61- public abstract Path gethHome ();
62-
6361 public abstract int getVersion ();
6462
6563 public abstract FileHeaderCryptor getFileHeaderCryptor ();
@@ -140,7 +138,7 @@ public Path encrypt(Session<?> session, Path file, byte[] directoryId, boolean m
140138 log .warn ("Skip file {} because it is marked as an internal vault path" , file );
141139 return file ;
142140 }
143- if (new SimplePathPredicate (file ).test (this .gethHome ())) {
141+ if (new SimplePathPredicate (file ).test (this .getHome ())) {
144142 log .warn ("Skip vault home {} because the root has no metadata file" , file );
145143 return file ;
146144 }
@@ -179,7 +177,7 @@ public Path encrypt(Session<?> session, Path file, byte[] directoryId, boolean m
179177 return file ;
180178 }
181179 if (file .getType ().contains (Path .Type .vault )) {
182- return this .getDirectoryProvider ().toEncrypted (session , this .gethHome ().attributes ().getDirectoryId (), this .gethHome ());
180+ return this .getDirectoryProvider ().toEncrypted (session , this .getHome ().attributes ().getDirectoryId (), this .getHome ());
183181 }
184182 encrypted = this .getDirectoryProvider ().toEncrypted (session , directoryId , file );
185183 }
@@ -188,8 +186,8 @@ public Path encrypt(Session<?> session, Path file, byte[] directoryId, boolean m
188186 encrypted .attributes ().setDecrypted (file );
189187 }
190188 // Add reference for vault
191- file .attributes ().setVault (this .gethHome ());
192- encrypted .attributes ().setVault (this .gethHome ());
189+ file .attributes ().setVault (this .getHome ());
190+ encrypted .attributes ().setVault (this .getHome ());
193191 return encrypted ;
194192 }
195193
@@ -233,7 +231,7 @@ public Path decrypt(final Session<?> session, final Path file) throws Background
233231 // Add reference to encrypted file
234232 attributes .setEncrypted (file );
235233 // Add reference for vault
236- attributes .setVault (this .gethHome ());
234+ attributes .setVault (this .getHome ());
237235 final EnumSet <Path .Type > type = EnumSet .copyOf (file .getType ());
238236 type .remove (this .isDirectory (inflated ) ? Path .Type .file : Path .Type .directory );
239237 type .add (this .isDirectory (inflated ) ? Path .Type .directory : Path .Type .file );
@@ -279,7 +277,7 @@ public synchronized boolean isUnlocked() {
279277 @ Override
280278 public boolean contains (final Path file ) {
281279 if (this .isUnlocked ()) {
282- return new SimplePathPredicate (file ).test (this .gethHome ()) || file .isChild (this .getHome ());
280+ return new SimplePathPredicate (file ).test (this .getHome ()) || file .isChild (this .getHome ());
283281 }
284282 return false ;
285283 }
0 commit comments