Package freenet.keys

Examples of freenet.keys.BaseClientKey


      freenetURI.writeFullBinaryKeyWithLength(dos);
    } else {
      String[] meta = freenetURI.getAllMetaStrings();
      if((meta != null) && (meta.length > 0))
        throw new MalformedURLException("Not a plain CHK");
      BaseClientKey key = BaseClientKey.getBaseKey(freenetURI);
      if(key instanceof ClientCHK) {
        ((ClientCHK)key).writeRawBinaryKey(dos);
      } else throw new IllegalArgumentException("Full keys must be enabled to write non-CHKs");
    }
  }
View Full Code Here


        // Hopefully!
        FreenetURI newURI = metadata.getSingleTarget();
        if(logMINOR) Logger.minor(this, "Redirecting to "+newURI);
        ClientKey redirectedKey;
        try {
          BaseClientKey k = BaseClientKey.getBaseKey(newURI);
          if(k instanceof ClientKey)
            redirectedKey = (ClientKey) k;
          else
            // FIXME do we want to allow redirects to USKs?
            // Without redirects to USKs, all SSK and CHKs are static.
View Full Code Here

   */
  public static ClientGetState create(ClientRequester requester, GetCompletionCallback cb,
      FreenetURI uri, FetchContext ctx, ArchiveContext actx,
      int maxRetries, int recursionLevel, boolean dontTellClientGet, long l, boolean isEssential,
      boolean isFinal, ClientContext context, boolean realTimeFlag, boolean hasInitialMetadata) throws MalformedURLException, FetchException {
    BaseClientKey key = null;
    if(!hasInitialMetadata)
      key = BaseClientKey.getBaseKey(uri);
    if((!uri.hasMetaStrings()) &&
        ctx.allowSplitfiles == false && ctx.followRedirects == false &&
        key instanceof ClientKey && (!hasInitialMetadata))
View Full Code Here

TOP

Related Classes of freenet.keys.BaseClientKey

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.