|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.tor.ordescription.ORDescription
public class ORDescription
Field Summary | |
---|---|
private java.util.Vector |
family
|
private ORAcl |
m_acl
|
private java.lang.String |
m_address
|
private boolean |
m_bIsExitNode
|
private java.lang.String |
m_name
|
private MyRSAPublicKey |
m_onionkey
|
private int |
m_port
|
private int |
m_portDir
|
private MyRSAPublicKey |
m_signingkey
|
private java.lang.String |
m_strSoftware
|
Constructor Summary | |
---|---|
ORDescription(java.lang.String address,
java.lang.String name,
int port,
java.lang.String strSoftware)
Constructor |
Method Summary | |
---|---|
ORAcl |
getAcl()
gets the ACL for this onion router |
java.lang.String |
getAddress()
gets the address of the OR |
int |
getDirPort()
gets the port of the directory server |
java.lang.String |
getName()
gets the name of the OR |
MyRSAPublicKey |
getOnionKey()
gets the onionkey |
int |
getPort()
gets the port |
MyRSAPublicKey |
getSigningKey()
gets the signing key |
java.lang.String |
getSoftware()
gets the software version of this OR |
boolean |
isExitNode()
returns if this server is an exit node |
boolean |
isSimilar(java.lang.Object onionrouter)
test if two OR's are identical returns also true, if the routers are in the same family |
static ORDescription |
parse(java.io.LineNumberReader reader)
Tries to parse an router specification according to the desing document. |
void |
setAcl(ORAcl acl)
sets the ACL for this onion router |
void |
setDirPort(int port)
sets the port of the directory server |
void |
setExitNode(boolean bIsExitNode)
sets this server as exit node or not |
void |
setFamily(java.util.Vector fam)
|
boolean |
setOnionKey(byte[] onionkey)
sets the onionkey for this OR |
boolean |
setSigningKey(byte[] signingkey)
sets the signing key |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String m_address
private java.lang.String m_name
private int m_port
private int m_portDir
private java.lang.String m_strSoftware
private ORAcl m_acl
private boolean m_bIsExitNode
private MyRSAPublicKey m_onionkey
private MyRSAPublicKey m_signingkey
private java.util.Vector family
Constructor Detail |
---|
public ORDescription(java.lang.String address, java.lang.String name, int port, java.lang.String strSoftware)
address
- address of the onion routername
- name for the onion routerport
- portstrSoftware
- version of the onion router softwareMethod Detail |
---|
public void setExitNode(boolean bIsExitNode)
bIsExitNode
- public void setFamily(java.util.Vector fam)
public boolean isExitNode()
public void setAcl(ORAcl acl)
acl
- ACLpublic ORAcl getAcl()
public boolean setOnionKey(byte[] onionkey)
onionkey
- onionkey
public MyRSAPublicKey getOnionKey()
public boolean setSigningKey(byte[] signingkey)
signingkey
- signing key
public MyRSAPublicKey getSigningKey()
public java.lang.String getAddress()
public java.lang.String getName()
public void setDirPort(int port)
port
- portpublic int getPort()
public int getDirPort()
public java.lang.String getSoftware()
public boolean isSimilar(java.lang.Object onionrouter)
or
- OR
public static ORDescription parse(java.io.LineNumberReader reader)
reader
- readerpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |