public final class TorCircuit
extends java.lang.Object
Constructor and Description |
---|
TorCircuit()
Constructor
|
TorCircuit(java.lang.String circuit)
Constructor, Create circuit object with given circuit
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBuildFlags()
Get current circuits build flags
|
java.lang.String |
getCircuit()
Get circuit
|
java.lang.String |
getExit(int type)
Get Exitnode
|
java.lang.String |
getExitHop()
Get current circuits exit node
|
static java.lang.String |
getFromNodeHop(java.lang.String nodeinfo,
int type)
Get fingerprint of given node Nodeinfo is in the format of
fingerprint~name or fingerprint=name
|
java.lang.String |
getGuard(int type)
Get Guardnode finger or nick
|
java.lang.String |
getGuardHop()
Get current circuits guard or entry node
|
java.lang.String |
getHops()
Get circuit hops
|
java.lang.String |
getID()
Get current circuit ID
|
java.lang.String |
getMiddleHop()
Get current circuits middle node if any, returns exit node for a two hop
circuit
|
java.lang.String |
getMiddleMan(int type)
Get Middleman
|
java.lang.String |
getPurpose()
Get current circuits purpose
|
java.lang.String |
getStatus()
Get current circuit status
|
java.lang.String |
getTimestamp()
Get current circuits timestamp
|
void |
setCircuit(java.lang.String circuit)
Set circuit to supplied circuit
|
void |
setHops(java.lang.String hops)
Set hops
|
public static final int FINGER
public static final int NICKNAME
public TorCircuit()
public TorCircuit(java.lang.String circuit)
circuit
- public void setCircuit(java.lang.String circuit)
circuit
- public java.lang.String getCircuit()
public void setHops(java.lang.String hops)
hops
- public java.lang.String getID()
public java.lang.String getStatus()
public java.lang.String getBuildFlags()
public java.lang.String getPurpose()
public java.lang.String getTimestamp()
public java.lang.String getHops()
public java.lang.String getGuardHop()
public java.lang.String getMiddleHop()
public java.lang.String getExitHop()
public java.lang.String getGuard(int type)
type
- 0 = finger, 1 = nickpublic java.lang.String getMiddleMan(int type)
type
- 0 = finger, 1 = nickpublic java.lang.String getExit(int type)
type
- 0 = finger, 1 = nickpublic static java.lang.String getFromNodeHop(java.lang.String nodeinfo, int type)
nodeinfo
- type
- 0 = finger, 1 = nickname