A B C D E G H I K L M N O P Q R S T U V W 
All Classes All Packages

A

addOnion(String, Map<Integer, String>) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to set up an onion service using the provided private key.
addOnion(String, Map<Integer, String>, boolean, boolean) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to set up an onion service using the provided private key.
addOnion(String, Map<Integer, String>, List<String>) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to set up an onion service.
addOnion(Map<Integer, String>) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to generate and set up a new onion service using the best supported algorithm.
addOnion(Map<Integer, String>, boolean, boolean) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to generate and set up a new onion service using the best supported algorithm.
attachStream(String, String) - Method in class net.freehaven.tor.control.TorControlConnection
Informs the Tor server that the stream specified by streamID should be associated with the circuit specified by circID.
authDemo(String[]) - Static method in class net.freehaven.tor.control.examples.Main
 
authenticate(byte[]) - Method in class net.freehaven.tor.control.TorControlConnection
Authenticates the controller to the Tor server.

B

bandwidthUsed(long, long) - Method in interface net.freehaven.tor.control.EventHandler
Invoked once per second.
bandwidthUsed(long, long) - Method in class net.freehaven.tor.control.examples.DebuggingEventHandler
 
bandwidthUsed(long, long) - Method in class net.freehaven.tor.control.NullEventHandler
 

C

checkThread() - Method in class net.freehaven.tor.control.TorControlConnection
 
CIRC_STATUS_BUILT - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CIRC_STATUS_CLOSED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CIRC_STATUS_EXTENDED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CIRC_STATUS_FAILED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CIRC_STATUS_LAUNCHED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CIRC_STATUS_NAMES - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
circuitStatus(String, String, String) - Method in interface net.freehaven.tor.control.EventHandler
Invoked when a circuit's status has changed.
circuitStatus(String, String, String) - Method in class net.freehaven.tor.control.examples.DebuggingEventHandler
 
circuitStatus(String, String, String) - Method in class net.freehaven.tor.control.NullEventHandler
 
closeCircuit(String, boolean) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to close the circuit identified by circID.
closeStream(String, byte) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to close the stream identified by streamID.
CMD_ATTACHSTREAM - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_AUTH - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_CLOSECIRCUIT - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_CLOSESTREAM - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_CONFVALUE - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_DONE - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_ERROR - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_EVENT - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_EXTENDCIRCUIT - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_FRAGMENT - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_FRAGMENTHEADER - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_GETCONF - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_GETINFO - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_INFOVALUE - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_MAPADDRESS - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_NAMES - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_POSTDESCRIPTOR - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_REDIRECTSTREAM - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_SAVECONF - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_SETCONF - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_SETEVENTS - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
CMD_SIGNAL - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
ConfigEntry - Class in net.freehaven.tor.control
A single key-value pair from Tor's configuration.
ConfigEntry(String) - Constructor for class net.freehaven.tor.control.ConfigEntry
 
ConfigEntry(String, String) - Constructor for class net.freehaven.tor.control.ConfigEntry
 
controlConnectionClosed() - Method in interface net.freehaven.tor.control.EventHandler
Invoked when Tor closes the control connection.
controlConnectionClosed() - Method in class net.freehaven.tor.control.examples.DebuggingEventHandler
 
controlConnectionClosed() - Method in class net.freehaven.tor.control.NullEventHandler
 
ControlParseThread() - Constructor for class net.freehaven.tor.control.TorControlConnection.ControlParseThread
 

D

DebuggingEventHandler - Class in net.freehaven.tor.control.examples
 
DebuggingEventHandler(PrintWriter) - Constructor for class net.freehaven.tor.control.examples.DebuggingEventHandler
 
delOnion(String) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to take down an onion service previously set up with addOnion().

E

ERROR_MSGS - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_BANDWIDTH - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_CIRCSTATUS - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_MSG_DEBUG - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_MSG_ERROR - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_MSG_INFO - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_MSG_NOTICE - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_MSG_WARN - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_NAMES - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_NEWDESCRIPTOR - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_ORCONNSTATUS - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EVENT_STREAMSTATUS - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
EventHandler - Interface in net.freehaven.tor.control
Abstract interface whose methods are invoked when Tor sends us an event.
extendCircuit(String, String) - Method in class net.freehaven.tor.control.TorControlConnection
An extendCircuit request takes one of two forms: either the circID is zero, in which case it is a request for the server to build a new circuit according to the specified path, or the circID is nonzero, in which case it is a request for the server to extend an existing circuit with that ID according to the specified path.

G

generateDigest() - Static method in class net.freehaven.tor.control.PasswordDigest
Return a new password digest with a random secret and salt.
getConf(String) - Method in class net.freehaven.tor.control.TorControlConnection
Return the value of the configuration option 'key'
getConf(Collection<String>) - Method in class net.freehaven.tor.control.TorControlConnection
Requests the values of the configuration variables listed in keys.
getConfig(String[]) - Static method in class net.freehaven.tor.control.examples.Main
 
getErrorMsg() - Method in exception net.freehaven.tor.control.TorControlException
 
getErrorType() - Method in exception net.freehaven.tor.control.TorControlException
 
getHashedPassword() - Method in class net.freehaven.tor.control.PasswordDigest
Return the hashed password in the format used by Tor.
getInfo(String) - Method in class net.freehaven.tor.control.TorControlConnection
Return the value of the information field 'key'
getInfo(String[]) - Static method in class net.freehaven.tor.control.examples.Main
 
getInfo(Collection<String>) - Method in class net.freehaven.tor.control.TorControlConnection
Queries the Tor server for keyed values that are not stored in the torrc configuration file.
getSecret() - Method in class net.freehaven.tor.control.PasswordDigest
Return the secret used to generate this password hash.

H

handleEvent(ArrayList<TorControlConnection.ReplyLine>) - Method in class net.freehaven.tor.control.TorControlConnection
Helper: decode a CMD_EVENT command and dispatch it to our EventHandler (if any).
HS_ADDRESS - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
HS_PRIVKEY - Static variable in interface net.freehaven.tor.control.TorControlCommands
 

I

is_default - Variable in class net.freehaven.tor.control.ConfigEntry
 

K

key - Variable in class net.freehaven.tor.control.ConfigEntry
 

L

launchThread(boolean) - Method in class net.freehaven.tor.control.TorControlConnection
Start a thread to react to Tor's responses in the background.
listenForEvents(String[]) - Static method in class net.freehaven.tor.control.examples.Main
 

M

main(String[]) - Static method in class net.freehaven.tor.control.examples.Main
 
Main - Class in net.freehaven.tor.control.examples
 
Main() - Constructor for class net.freehaven.tor.control.examples.Main
 
mapAddress(String, String) - Method in class net.freehaven.tor.control.TorControlConnection
 
mapAddresses(Collection<String>) - Method in class net.freehaven.tor.control.TorControlConnection
Tells the Tor server that future SOCKS requests for connections to a set of original addresses should be replaced with connections to the specified replacement addresses.
mapAddresses(Map<String, String>) - Method in class net.freehaven.tor.control.TorControlConnection
 
message(String, String) - Method in interface net.freehaven.tor.control.EventHandler
Invoked when Tor logs a message.
message(String, String) - Method in class net.freehaven.tor.control.examples.DebuggingEventHandler
 
message(String, String) - Method in class net.freehaven.tor.control.NullEventHandler
 

N

net.freehaven.tor.control - package net.freehaven.tor.control
 
net.freehaven.tor.control.examples - package net.freehaven.tor.control.examples
 
newDescriptors(List<String>) - Method in interface net.freehaven.tor.control.EventHandler
Invoked whenever Tor learns about new ORs.
newDescriptors(List<String>) - Method in class net.freehaven.tor.control.examples.DebuggingEventHandler
 
newDescriptors(List<String>) - Method in class net.freehaven.tor.control.NullEventHandler
 
NullEventHandler - Class in net.freehaven.tor.control
Implementation of EventHandler that ignores all events.
NullEventHandler() - Constructor for class net.freehaven.tor.control.NullEventHandler
 

O

OR_CONN_STATUS_CLOSED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
OR_CONN_STATUS_CONNECTED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
OR_CONN_STATUS_FAILED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
OR_CONN_STATUS_LAUNCHED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
OR_CONN_STATUS_NAMES - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
orConnStatus(String, String) - Method in interface net.freehaven.tor.control.EventHandler
Invoked when the status of a connection to an OR has changed.
orConnStatus(String, String) - Method in class net.freehaven.tor.control.examples.DebuggingEventHandler
 
orConnStatus(String, String) - Method in class net.freehaven.tor.control.NullEventHandler
 

P

PasswordDigest - Class in net.freehaven.tor.control
A hashed digest of a secret password (used to set control connection security.)
PasswordDigest(byte[]) - Constructor for class net.freehaven.tor.control.PasswordDigest
Construct a new password digest with a given secret and random salt
PasswordDigest(byte[], byte[]) - Constructor for class net.freehaven.tor.control.PasswordDigest
Construct a new password digest with a given secret and random salt.
postDescriptor(String) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor about the server descriptor in desc.

Q

quote(String) - Static method in class net.freehaven.tor.control.TorControlConnection
 

R

react() - Method in class net.freehaven.tor.control.TorControlConnection
helper: implement the main background loop.
readReply() - Method in class net.freehaven.tor.control.TorControlConnection
 
redirectStream(String, String) - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to change the exit address of the stream identified by streamID to address.
resetConf(Collection<String>) - Method in class net.freehaven.tor.control.TorControlConnection
Try to reset the values listed in the collection 'keys' to their default values.
run() - Method in class net.freehaven.tor.control.TorControlConnection.ControlParseThread
 

S

saveConf() - Method in class net.freehaven.tor.control.TorControlConnection
Instructs the server to write out its configuration options into its torrc.
secretToKey(byte[], byte[]) - Static method in class net.freehaven.tor.control.PasswordDigest
Implement rfc2440 s2k
sendAndWaitForResponse(String, String) - Method in class net.freehaven.tor.control.TorControlConnection
 
setConf(String, String) - Method in class net.freehaven.tor.control.TorControlConnection
Change the value of the configuration option 'key' to 'val'.
setConf(Collection<String>) - Method in class net.freehaven.tor.control.TorControlConnection
Changes the values of the configuration options stored in kvList.
setConf(Map<String, String>) - Method in class net.freehaven.tor.control.TorControlConnection
Change the values of the configuration options stored in kvMap.
setConfig(String[]) - Static method in class net.freehaven.tor.control.examples.Main
 
setDebugging(PrintStream) - Method in class net.freehaven.tor.control.TorControlConnection
Sets s as the PrintStream for debugging output, which writes out all messages passed between Tor and the controller.
setDebugging(PrintWriter) - Method in class net.freehaven.tor.control.TorControlConnection
Sets w as the PrintWriter for debugging output, which writes out all messages passed between Tor and the controller.
setEventHandler(EventHandler) - Method in class net.freehaven.tor.control.TorControlConnection
Set the EventHandler object that will be notified of any events Tor delivers to this connection.
setEvents(List<String>) - Method in class net.freehaven.tor.control.TorControlConnection
Request that the server inform the client about interesting events.
shutdownTor(String) - Method in class net.freehaven.tor.control.TorControlConnection
Send a signal to the Tor process to shut it down or halt it.
signal(String) - Method in class net.freehaven.tor.control.TorControlConnection
Sends a signal from the controller to the Tor server.
signal(String[]) - Static method in class net.freehaven.tor.control.examples.Main
 
SIGNAL_HUP - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
SIGNAL_INT - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
SIGNAL_TERM - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
SIGNAL_USR1 - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
SIGNAL_USR2 - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
STREAM_STATUS_CLOSED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
STREAM_STATUS_DETACHED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
STREAM_STATUS_FAILED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
STREAM_STATUS_NAMES - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
STREAM_STATUS_NEW_CONNECT - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
STREAM_STATUS_NEW_RESOLVE - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
STREAM_STATUS_SENT_CONNECT - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
STREAM_STATUS_SENT_RESOLVE - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
STREAM_STATUS_SUCCEEDED - Static variable in interface net.freehaven.tor.control.TorControlCommands
 
streamStatus(String, String, String) - Method in interface net.freehaven.tor.control.EventHandler
Invoked when a stream's status has changed.
streamStatus(String, String, String) - Method in class net.freehaven.tor.control.examples.DebuggingEventHandler
 
streamStatus(String, String, String) - Method in class net.freehaven.tor.control.NullEventHandler
 

T

takeOwnership() - Method in class net.freehaven.tor.control.TorControlConnection
Tells Tor to exit when this control connection is closed.
TorControlCommands - Interface in net.freehaven.tor.control
Interface defining constants used by the Tor controller protocol.
TorControlConnection - Class in net.freehaven.tor.control
A connection to a running Tor process as specified in control-spec.txt.
TorControlConnection(InputStream, OutputStream) - Constructor for class net.freehaven.tor.control.TorControlConnection
Create a new TorControlConnection to communicate with Tor over an arbitrary pair of data streams.
TorControlConnection(Reader, Writer) - Constructor for class net.freehaven.tor.control.TorControlConnection
 
TorControlConnection(Socket) - Constructor for class net.freehaven.tor.control.TorControlConnection
Create a new TorControlConnection to communicate with Tor over a given socket.
TorControlConnection.ControlParseThread - Class in net.freehaven.tor.control
 
TorControlException - Exception in net.freehaven.tor.control
An exception raised when Tor tells us about an error.
TorControlException(int, String) - Constructor for exception net.freehaven.tor.control.TorControlException
 
TorControlException(String) - Constructor for exception net.freehaven.tor.control.TorControlException
 
TorControlSyntaxException - Exception in net.freehaven.tor.control
An exception raised when Tor behaves in an unexpected way.
TorControlSyntaxException(String) - Constructor for exception net.freehaven.tor.control.TorControlSyntaxException
 
TorNotRunningException - Exception in net.freehaven.tor.control
An exception raised when Tor is no longer running.
TorNotRunningException() - Constructor for exception net.freehaven.tor.control.TorNotRunningException
 
TorNotRunningException(String) - Constructor for exception net.freehaven.tor.control.TorNotRunningException
 

U

unrecognized(String, String) - Method in interface net.freehaven.tor.control.EventHandler
Invoked when an unspecified message is received.
unrecognized(String, String) - Method in class net.freehaven.tor.control.examples.DebuggingEventHandler
 
unrecognized(String, String) - Method in class net.freehaven.tor.control.NullEventHandler
 

V

value - Variable in class net.freehaven.tor.control.ConfigEntry
 

W

writeEscaped(String) - Method in class net.freehaven.tor.control.TorControlConnection
 
A B C D E G H I K L M N O P Q R S T U V W 
All Classes All Packages