@Override public Name getLocation(final Path file) throws BackgroundException { return delegate.getLocation(vault.encrypt(session, file)); }
@Override public Append append(final Path file, final Long length, final Cache<Path> cache) throws BackgroundException { if(finder.withCache(cache).find(file)) { final PathAttributes attr = attributes.withCache(cache).find(file); return new Append(false, true).withSize(attr.getSize()).withChecksum(attr.getChecksum()); } return Write.notfound; }
@Override public Algorithm getEncryption(final Path file) throws BackgroundException { return delegate.getEncryption(vault.encrypt(session, file)); }
@Override public VersioningConfiguration getConfiguration(final Path container) throws BackgroundException { return delegate.getConfiguration(vault.encrypt(session, container)); }
@Override public LifecycleConfiguration getConfiguration(final Path container) throws BackgroundException { return delegate.getConfiguration(vault.encrypt(session, container)); }
@Override public void setUnixPermission(final Path file, final Permission permission) throws BackgroundException { delegate.setUnixPermission(cryptomator.encrypt(session, file), permission); }
@Override public Algorithm getDefault(final Path file) throws BackgroundException { return delegate.getDefault(vault.encrypt(session, file)); }
@Override public void setUnixGroup(final Path file, final String group) throws BackgroundException { delegate.setUnixGroup(cryptomator.encrypt(session, file), group); }
@Override public void setEncryption(final Path file, final Algorithm algorithm) throws BackgroundException { delegate.setEncryption(vault.encrypt(session, file), algorithm); }
@Override public void download(final Path file, final Local local, final BandwidthThrottle throttle, final StreamListener listener, final TransferStatus status, final ConnectionCallback connectionCallback, final PasswordCallback passwordCallback) throws BackgroundException { proxy.download(vault.encrypt(session, file), local, throttle, listener, status, connectionCallback, passwordCallback); }
@Override public Append append(final Path file, final Long length, final Cache<Path> cache) throws BackgroundException { if(finder.withCache(cache).find(file)) { final PathAttributes attributes = this.attributes.withCache(cache).find(file); return new Append(false, true).withSize(attributes.getSize()).withChecksum(attributes.getChecksum()); } return Write.notfound; }