org.torproject.jtor.hiddenservice
Class HiddenService

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

public class HiddenService
extends java.lang.Object

The Class HiddenService.


Constructor Summary
HiddenService(java.lang.String serviceName, org.torproject.jtor.data.exitpolicy.PortRange servicePorts)
          Instantiates a new hidden service.
HiddenService(java.lang.String serviceName, org.torproject.jtor.data.exitpolicy.PortRange servicePorts, org.torproject.jtor.crypto.TorPublicKey publicKey)
          Instantiates a new hidden service.
 
Method Summary
 void addIntroductionPoint(IntroductionPoint point)
          Adds the introduction point.
 void AdvertiseDescriptor()
          Advertise descriptor.
 void establishIntroductionPoints()
          Establish introduction points.
 void generateKeys()
          Generate keys.
 void generateServiceDescriptor()
          Generate service descripter.
 ServiceDescriptor getHiddenServiceDescripter()
          Gets the hidden service descripter.
 java.util.ArrayList<IntroductionPoint> getIntroductionPoints()
          Gets the introduction points.
 org.torproject.jtor.crypto.TorPublicKey getPublicKey()
          Gets the public key.
 java.lang.String getServiceName()
          Gets the service name.
 org.torproject.jtor.data.exitpolicy.PortRange getServicePorts()
          Gets the service ports.
 void setPrivateKey(java.security.interfaces.RSAPrivateKey privateKey)
          Sets the private key.
 void setPublicKey(org.torproject.jtor.crypto.TorPublicKey publicKey)
          Sets the public key.
 void setServiceName(java.lang.String serviceName)
          Sets the service name.
 void setServicePorts(org.torproject.jtor.data.exitpolicy.PortRange servicePorts)
          Sets the service ports.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiddenService

public HiddenService(java.lang.String serviceName,
                     org.torproject.jtor.data.exitpolicy.PortRange servicePorts)
Instantiates a new hidden service.

Parameters:
serviceName - the service name
servicePorts - the service ports

HiddenService

public HiddenService(java.lang.String serviceName,
                     org.torproject.jtor.data.exitpolicy.PortRange servicePorts,
                     org.torproject.jtor.crypto.TorPublicKey publicKey)
Instantiates a new hidden service.

Parameters:
serviceName - the service name
servicePorts - the service ports
publicKey - the public key
Method Detail

getPublicKey

public org.torproject.jtor.crypto.TorPublicKey getPublicKey()
Gets the public key.

Returns:
the public key

setPublicKey

public void setPublicKey(org.torproject.jtor.crypto.TorPublicKey publicKey)
Sets the public key.

Parameters:
publicKey - the new public key

getServiceName

public java.lang.String getServiceName()
Gets the service name.

Returns:
the service name

setServiceName

public void setServiceName(java.lang.String serviceName)
Sets the service name.

Parameters:
serviceName - the new service name

getServicePorts

public org.torproject.jtor.data.exitpolicy.PortRange getServicePorts()
Gets the service ports.

Returns:
the service ports

setServicePorts

public void setServicePorts(org.torproject.jtor.data.exitpolicy.PortRange servicePorts)
Sets the service ports.

Parameters:
servicePorts - the new service ports

getIntroductionPoints

public java.util.ArrayList<IntroductionPoint> getIntroductionPoints()
Gets the introduction points.

Returns:
the introduction points

getHiddenServiceDescripter

public ServiceDescriptor getHiddenServiceDescripter()
Gets the hidden service descripter.

Returns:
the hidden service descripter

setPrivateKey

public void setPrivateKey(java.security.interfaces.RSAPrivateKey privateKey)
Sets the private key.

Parameters:
privateKey - the new private key

generateKeys

public void generateKeys()
Generate keys.


generateServiceDescriptor

public void generateServiceDescriptor()
Generate service descripter.


AdvertiseDescriptor

public void AdvertiseDescriptor()
Advertise descriptor.


addIntroductionPoint

public void addIntroductionPoint(IntroductionPoint point)
Adds the introduction point.

Parameters:
point - the point

establishIntroductionPoints

public void establishIntroductionPoints()
Establish introduction points.