org.torproject.jtor.hiddenservice
Class HiddenServiceConnection

java.lang.Object
  extended by org.torproject.jtor.hiddenservice.HiddenServiceConnection

public class HiddenServiceConnection
extends java.lang.Object

The Class HiddenServiceConnection.


Constructor Summary
HiddenServiceConnection(java.lang.String onionAddress)
          Instantiates a new hidden service connection.
HiddenServiceConnection(org.torproject.jtor.crypto.TorPublicKey serviceKey)
          Instantiates a new hidden service connection.
 
Method Summary
 void fetchServiceDescriptor()
          Fetch service descriptor.
 void generaterendezvousCookie()
          Generate rendezvous cookie.
 java.lang.String getOnionAddress()
          Gets the onion address.
 org.torproject.jtor.data.exitpolicy.PortRange getPortRange()
          Gets the port range.
 byte[] getrendezvousCookie()
          Gets the rendezvous cookie.
 void openRendevouzPoints()
          Open rendezvous points.
 void parseOnionAddress()
          Parses the onion address.
 void setOnionAddress(java.lang.String onionAddress)
          Sets the onion address.
 void setPortRange(org.torproject.jtor.data.exitpolicy.PortRange portRange)
          Sets the port range.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiddenServiceConnection

public HiddenServiceConnection(java.lang.String onionAddress)
Instantiates a new hidden service connection.

Parameters:
onionAddress - the onion address

HiddenServiceConnection

public HiddenServiceConnection(org.torproject.jtor.crypto.TorPublicKey serviceKey)
Instantiates a new hidden service connection.

Parameters:
serviceKey - the service key
Method Detail

parseOnionAddress

public void parseOnionAddress()
Parses the onion address.


generaterendezvousCookie

public void generaterendezvousCookie()
Generate rendezvous cookie.


getOnionAddress

public java.lang.String getOnionAddress()
Gets the onion address.

Returns:
the onion address

setOnionAddress

public void setOnionAddress(java.lang.String onionAddress)
Sets the onion address.

Parameters:
onionAddress - the new onion address

getPortRange

public org.torproject.jtor.data.exitpolicy.PortRange getPortRange()
Gets the port range.

Returns:
the port range

setPortRange

public void setPortRange(org.torproject.jtor.data.exitpolicy.PortRange portRange)
Sets the port range.

Parameters:
portRange - the new port range

getrendezvousCookie

public byte[] getrendezvousCookie()
Gets the rendezvous cookie.

Returns:
the rendezvous cookie

fetchServiceDescriptor

public void fetchServiceDescriptor()
Fetch service descriptor.


openRendevouzPoints

public void openRendevouzPoints()
Open rendezvous points.