anon.tor.ordescription
Class InfoServiceORListFetcher

java.lang.Object
  extended by anon.tor.ordescription.InfoServiceORListFetcher
All Implemented Interfaces:
ORListFetcher

public final class InfoServiceORListFetcher
extends java.lang.Object
implements ORListFetcher


Constructor Summary
InfoServiceORListFetcher()
           
 
Method Summary
 byte[] getAllDescriptors()
          gets descriptors for all known ORs
 byte[] getDescriptor(java.lang.String digest)
          gets descriptor for OR with given digest
 byte[] getDescriptorByFingerprint(java.lang.String fingerprint)
           
 byte[] getORList()
           
 byte[] getRouterStatus()
          gets authoritive network-status
 byte[] getStatus(java.lang.String fp)
          gets network-status for host with given fingerprint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoServiceORListFetcher

public InfoServiceORListFetcher()
Method Detail

getORList

public byte[] getORList()

getAllDescriptors

public byte[] getAllDescriptors()
Description copied from interface: ORListFetcher
gets descriptors for all known ORs

Specified by:
getAllDescriptors in interface ORListFetcher
Returns:
concatenated descriptors

getDescriptor

public byte[] getDescriptor(java.lang.String digest)
Description copied from interface: ORListFetcher
gets descriptor for OR with given digest

Specified by:
getDescriptor in interface ORListFetcher
Returns:
descriptor

getStatus

public byte[] getStatus(java.lang.String fp)
Description copied from interface: ORListFetcher
gets network-status for host with given fingerprint

Specified by:
getStatus in interface ORListFetcher
Returns:
status document

getDescriptorByFingerprint

public byte[] getDescriptorByFingerprint(java.lang.String fingerprint)
Specified by:
getDescriptorByFingerprint in interface ORListFetcher

getRouterStatus

public byte[] getRouterStatus()
Description copied from interface: ORListFetcher
gets authoritive network-status

Specified by:
getRouterStatus in interface ORListFetcher
Returns:
status document