|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Interface Summary | |
|---|---|
| HTTPProxyCallback.IHTTPHelper | |
| IProxyListener | |
| ProxyCallback | |
| Class Summary | |
|---|---|
| AbstractHTTPConnectionListener | |
| AnonProxy | This calls implements a proxy one can use for convienient access to the provided anonymous communication primitives. |
| AnonProxyRequest | |
| DecompressionProxyCallback | This class provides functionality for inflating zlib- or gzip-compressed content. |
| DecompressionProxyCallback.DecompressionKit | |
| HTTPConnectionEvent | |
| HttpConnectionListenerAdapter | |
| HTTPProxyCallback | Provides functionality for parsing and storing the headers of a HTTP-Connection. |
| JonDoFoxHeader | |
| ProxyCallbackBuffer | |
| ProxyCallbackHandler | |
| Exception Summary | |
|---|---|
| HTTPHeaderParseException | |
| ProxyCallbackDelayException | |
| ProxyCallbackNotProcessableException | Exception for the ProxyCallback framework in case a chunk cannot be properly processed |
This package implements a proxy for convienient use of the anonymous communication primitives provided by the ANON library.
Example usage:
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);
}
}
}
}
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||