Package com.subgraph.orchid

Examples of com.subgraph.orchid.OpenFailedException


    }
    final HSDescriptor descriptor = downloadDescriptorFor(hs);
    if(descriptor == null) {
      final String msg = "Failed to download HS descriptor for "+ hs.getOnionAddressForLogging();
      logger.info(msg);
      throw new OpenFailedException(msg);
    }
    hs.setDescriptor(descriptor);
    return descriptor;
  }
View Full Code Here


    try {
      byte[] decoded = HiddenService.decodeOnion(key);
      return new HiddenService(config, decoded);
    } catch (TorException e) {
      final String target = config.getSafeLogging() ? "[scrubbed]" : (key + ".onion");
      throw new OpenFailedException("Failed to decode onion address "+ target + " : "+ e.getMessage());
    }
  }
View Full Code Here

    try {
      final DirectoryCircuit dc = circuit.cannibalizeToDirectory(directory);
      return dc.openDirectoryStream(10000, true);
    } catch (StreamConnectFailedException e) {
      circuit.markForClose();
      throw new OpenFailedException("Failed to open directory stream");
    } catch (TorException e) {
      circuit.markForClose();
      throw new OpenFailedException("Failed to extend circuit to HS directory: "+ e.getMessage());
    }
  }
View Full Code Here

    synchronized(requestCompletionLock) {
      switch(completionStatus) {
      case NOT_COMPLETED:
        throw new IllegalStateException("Request not completed");
      case EXIT_FAILURE:
        throw new OpenFailedException("Failure at exit node");
      case TIMEOUT:
        throw new TimeoutException();
      case STREAM_OPEN_FAILURE:
        throw new StreamConnectFailedException(streamOpenFailReason);
      case INTERRUPTED:
View Full Code Here

TOP

Related Classes of com.subgraph.orchid.OpenFailedException

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.