Tabnine Logo
VaultFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
VaultFactory
in
ch.cyberduck.core.vault

Best Java code snippets using ch.cyberduck.core.vault.VaultFactory (Showing top 3 results out of 315)

origin: iterate-ch/cyberduck

public static Vault get(final Path directory, final String masterkey, final byte[] pepper) {
  return new VaultFactory().create(directory, masterkey, pepper);
}
origin: iterate-ch/cyberduck

  @Override
  public void callback(final Path folder, final String region, final VaultCredentials passphrase) {
    background(new WorkerBackgroundAction<Path>(BrowserController.this, pool,
      new CreateVaultWorker(region, passphrase, PasswordStoreFactory.get(), VaultFactory.get(folder, DefaultVaultRegistry.DEFAULT_MASTERKEY_FILE_NAME, DefaultVaultRegistry.DEFAULT_PEPPER)) {
        @Override
        public void cleanup(final Path vault) {
          reload(workdir(), Collections.singletonList(folder), Collections.singletonList(folder));
        }
      })
    );
  }
});
origin: iterate-ch/cyberduck

  @Override
  public Vault load(final Path directory, final String masterkey, final byte[] pepper) throws VaultUnlockCancelException {
    synchronized(registry) {
      if(registry.contains(directory)) {
        return registry.find(session, directory);
      }
      final Vault vault = VaultFactory.get(directory, masterkey, pepper);
      if(log.isInfoEnabled()) {
        log.info(String.format("Loading vault %s for session %s", vault, session));
      }
      try {
        registry.add(vault.load(session, prompt, keychain));
      }
      catch(BackgroundException e) {
        log.warn(String.format("Failure loading vault %s. %s", vault, e.getDetail()));
        throw new VaultUnlockCancelException(vault, e);
      }
      return vault;
    }
  }
}
ch.cyberduck.core.vaultVaultFactory

Most used methods

  • get
  • <init>
  • create

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now