Package freenet.store

Examples of freenet.store.PubkeyStore.fetch()


      DSAPublicKey key = null;
      if(pubKeyClientcache != null && canReadClientCache)
        key = pubKeyClientcache.fetch(hash, false, false, meta);
      if(node.oldPKClientCache != null && canReadClientCache && key == null) {
        PubkeyStore pks = node.oldPKClientCache;
        if(pks != null) key = pks.fetch(hash, false, false, meta);
        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from old client cache");
      }
      // We can *read* from the datastore even if nearby, but we cannot promote in that case.
      if(key == null) {
View Full Code Here


        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from store");
      }
      if(key == null) {
        PubkeyStore pks = node.oldPK;
        if(pks != null) key = pks.fetch(hash, false, ignoreOldBlocks, meta);
        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from old store");
      }
      if (key == null) {
        key = pubKeyDatacache.fetch(hash, false, ignoreOldBlocks, meta);
View Full Code Here

        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from cache");
      }
      if(key == null) {
        PubkeyStore pks = node.oldPKCache;
        if(pks != null) key = pks.fetch(hash, false, ignoreOldBlocks, meta);
        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from old cache");
      }
      if(key == null && pubKeySlashdotcache != null && forULPR) {
        key = pubKeySlashdotcache.fetch(hash, false, ignoreOldBlocks, meta);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.