See: Description
| Interface | Description |
|---|---|
| IProxyListener | |
| ProxyCallback |
Used to process bytes received as a request before sending to its destination
or as a response from that destination, before it's given to the client.
|
| Class | Description |
|---|---|
| AbstractHTTPConnectionListener | |
| AbstractJonDoFoxHeaders | |
| AnonProxy |
This calls implements a proxy one can use for convenient access to the
provided anonymous communication primitives, like
AnonChannel
objects. |
| AnonProxyRequest |
Reads the request over the given client socket and opens an
AnonChannel, corresponding to the necessary protocol, to the
destination using the given AnonProxy object. |
| BrowserIdentification | |
| DecompressionProxyCallback |
This class provides functionality for inflating zlib- or gzip-compressed content.
|
| DecompressionProxyCallback.DecompressionKit | |
| DirectProxy |
This class describes an HTTP proxy, when anonymity has been deactivated.
|
| DirectProxy.AllowProxyConnectionCallback | |
| DirectProxy.AllowProxyConnectionCallback.Answer | |
| DirectProxy.RequestInfo |
This class holds the URI, method (HTTP or "CONNECT"), port and a
JonDoProxy argument, that were read from a Request received from the
client.
|
| HTTPConnectionEvent | |
| HttpConnectionListenerAdapter | |
| HTTPProxyCallback |
Provides functionality for parsing and storing the headers of a
HTTP-Connection.
|
| HTTPProxyCallback.HTTPConnectionHeader | |
| JonDoFoxHeader | |
| JonDonymXHeaders | |
| ProxyCallbackBuffer |
This buffer is used to communicate between a request/response received by a
proxy and a
ProxyCallback. |
| ProxyCallbackHandler |
Experimental framework class to filter or modify data before it is
transferred via the gateway.
|
| Exception | Description |
|---|---|
| HTTPHeaderParseException | |
| ProxyCallbackDelayException | |
| ProxyCallbackNotProcessableException |
Exception for the ProxyCallback framework in case a chunk cannot be properly processed
|
import java.net.ServerSocket;
import anon.proxy.AnonProxy;
import anon.infoservice.MixCascade;
import logging.LogHolder;
import logging.SystemErrLog;
import logging.LogType;
import logging.LogLevel;
import anon.crypto.SignatureVerifier;
public class AnonProxyTest
{
public static void main(String[] args)
{
try
{
//just to ensure that we see some debug messages...
SystemErrLog log=new SystemErrLog();
log.setLogType(LogType.ALL);
log.setLogLevel(LogLevel.DEBUG);
LogHolder.setLogInstance(new SystemErrLog());
ServerSocket ss = new ServerSocket(4005);
AnonProxy theProxy = new AnonProxy(ss, null);
//we need to disbale certificate checks (better: set valid root certifcates for productive environments!)
SignatureVerifier.getInstance().setCheckSignatures(false);
theProxy.setMixCascade(new MixCascade(null, null, "mix.inf.tu-dresden.de", 6544));
theProxy.start();
}
catch (Exception e)
{
System.out.println(e);
}
}
}
}
Copyright © 2023. All rights reserved.