|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.tor.ordescription.ORDescriptor
public class ORDescriptor
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_fingerprint
|
private java.lang.String |
m_hash
|
private boolean |
m_hibernate
|
private java.lang.String |
m_name
|
private MyRSAPublicKey |
m_onionkey
|
private int |
m_port
|
private int |
m_portDir
|
private java.lang.String |
m_published
|
private MyRSAPublicKey |
m_signingkey
|
private java.lang.String |
m_strSoftware
|
private int |
m_uptime
|
Constructor Summary | |
---|---|
ORDescriptor(java.lang.String address,
java.lang.String name,
int port,
java.lang.String strSoftware)
Constructor |
Method Summary | |
---|---|
private static java.lang.String |
calcHash(java.lang.String desc)
|
private static boolean |
checkSignature(byte[] document,
byte[] signature,
byte[] identity)
|
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.util.Vector |
getFamily()
|
java.lang.String |
getFingerprint()
|
java.lang.String |
getHash()
|
boolean |
getHibernate()
|
java.lang.String |
getName()
gets the name of the OR |
MyRSAPublicKey |
getOnionKey()
gets the onionkey |
int |
getPort()
gets the port |
java.lang.String |
getPublished()
|
MyRSAPublicKey |
getSigningKey()
gets the signing key |
java.lang.String |
getSoftware()
gets the software version of this OR |
int |
getUptime()
|
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 ORDescriptor |
parse(java.io.LineNumberReader reader)
Tries to parse an router specification according to the descriptor. |
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)
|
void |
setFingerprint(java.lang.String fp)
|
void |
setHash(java.lang.String hash)
|
void |
setHibernate(boolean hibernate)
|
boolean |
setOnionKey(byte[] onionkey)
sets the onionkey for this OR |
void |
setPublished(java.lang.String published)
|
boolean |
setSigningKey(byte[] signingkey)
sets the signing key |
void |
setUptime(int uptime)
|
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 java.lang.String m_fingerprint
private boolean m_hibernate
private int m_port
private int m_portDir
private int m_uptime
private java.lang.String m_strSoftware
private java.lang.String m_published
private java.lang.String m_hash
private ORAcl m_acl
private boolean m_bIsExitNode
private MyRSAPublicKey m_onionkey
private MyRSAPublicKey m_signingkey
private java.util.Vector family
Constructor Detail |
---|
public ORDescriptor(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 setPublished(java.lang.String published)
public java.lang.String getPublished()
public void setFingerprint(java.lang.String fp)
public java.lang.String getFingerprint()
public void setHash(java.lang.String hash)
public java.lang.String getHash()
public void setUptime(int uptime)
public int getUptime()
public java.util.Vector getFamily()
public void setHibernate(boolean hibernate)
public boolean getHibernate()
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 ORDescriptor parse(java.io.LineNumberReader reader)
reader
- reader
public java.lang.String toString()
toString
in class java.lang.Object
private static java.lang.String calcHash(java.lang.String desc)
private static boolean checkSignature(byte[] document, byte[] signature, byte[] identity)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |