@Override public Set<Algorithm> getKeys(final Path file, final LoginCallback prompt) throws BackgroundException { return delegate.getKeys(vault.encrypt(session, file), prompt); }
@Override public Set<Algorithm> getKeys(final Path file, final LoginCallback prompt) throws BackgroundException { return registry.find(session, file).getFeature(session, Encryption.class, proxy).getKeys(file, prompt); }
@Override public Set<Encryption.Algorithm> run(final Session<?> session) throws BackgroundException { final Encryption feature = session.getFeature(Encryption.class); final Set<Encryption.Algorithm> keys = new HashSet<>(); for(Path file : this.getContainers(files)) { if(this.isCanceled()) { throw new ConnectionCanceledException(); } keys.addAll(feature.getKeys(file, prompt)); } return keys; }
managedEncryptionKeys = session.getFeature(Encryption.class).getKeys(file, prompt); for(final Path f : files) { selectedEncryptionKeys.add(session.getFeature(Encryption.class).getEncryption(f));