Package org.syncany.crypto

Examples of org.syncany.crypto.SaltedSecretKeyConverter


  public static ConfigTO load(File file) throws ConfigException {
    try {
      Registry registry = new Registry();
      Strategy strategy = new RegistryStrategy(registry);
      registry.bind(SaltedSecretKey.class, new SaltedSecretKeyConverter());
      registry.bind(String.class, new EncryptedTransferSettingsConverter());

      return new Persister(strategy).read(ConfigTO.class, file);
    }
    catch (Exception ex) {
View Full Code Here


  public void save(File file) throws ConfigException {
    try {
      Registry registry = new Registry();
      Strategy strategy = new RegistryStrategy(registry);
      registry.bind(SaltedSecretKey.class, new SaltedSecretKeyConverter());
      registry.bind(String.class, new EncryptedTransferSettingsConverter(transferSettings.getClass()));

      new Persister(strategy).write(this, file);
    }
    catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.syncany.crypto.SaltedSecretKeyConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.