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

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

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

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.vaultVaultFactoryget

Popular methods of VaultFactory

  • <init>
  • create

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top PhpStorm 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