|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanon.mixminion.Mixminion
public class Mixminion
This class implements the Mixminion anonymity service, which can be used to sent anonymous e-mail
| Field Summary | |
|---|---|
private IMutableProxyInterface |
m_proxyInterface
|
private static MixminionServiceDescription |
m_serviceDescription
|
static int |
MAX_ROUTE_LEN
|
static int |
MIN_ROUTE_LEN
|
private static Mixminion |
ms_theMixminionInstance
|
| Fields inherited from interface anon.AnonService |
|---|
ANONLIB_VERSION |
| Constructor Summary | |
|---|---|
private |
Mixminion()
|
| Method Summary | |
|---|---|
void |
addEventListener(AnonServiceEventListener l)
Adds an AnonServiceEventListener. |
AnonChannel |
createChannel(int type)
creates a SMTP channel which sents e-mail through the mixminion-network |
AnonChannel |
createChannel(java.lang.String host,
int port)
Always returns NULL as normal TCP/IP channels are not supported at the moment |
static Mixminion |
getInstance()
Returns a Instance of Mixminion |
static java.lang.String |
getMyEMail()
|
IMutableProxyInterface |
getProxy()
|
static int |
getRouteLen()
|
int |
initialize(AnonServerDescription anonServer,
IServiceContainer a_serviceContainer,
TermsAndConditionConfirmation termsConfirmation)
Initializes this AnonService. |
boolean |
isConnected()
Returns true if this Anon Service is connected, e.g. |
void |
removeEventListener(AnonServiceEventListener l)
Removes an AnonServiceEventListener. |
void |
removeEventListeners()
|
int |
setProxy(IMutableProxyInterface a_Proxy)
Sets the settings ofr the proxy, which should be used to establish network connections |
void |
setRouteLen(int len)
sets RouteLength |
void |
shutdown(boolean a_bResetTransferredBytes)
Disconnects form the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static MixminionServiceDescription m_serviceDescription
public static final int MAX_ROUTE_LEN
public static final int MIN_ROUTE_LEN
private static Mixminion ms_theMixminionInstance
private IMutableProxyInterface m_proxyInterface
| Constructor Detail |
|---|
private Mixminion()
| Method Detail |
|---|
public int initialize(AnonServerDescription anonServer,
IServiceContainer a_serviceContainer,
TermsAndConditionConfirmation termsConfirmation)
AnonService
initialize in interface AnonServiceanonServer - AnonServer to use
public void setRouteLen(int len)
len - route lengthpublic static int getRouteLen()
public static java.lang.String getMyEMail()
public int setProxy(IMutableProxyInterface a_Proxy)
AnonService
setProxy in interface AnonServicepublic IMutableProxyInterface getProxy()
public void shutdown(boolean a_bResetTransferredBytes)
AnonService
shutdown in interface AnonServicepublic boolean isConnected()
AnonService
isConnected in interface AnonService
public AnonChannel createChannel(int type)
throws java.net.ConnectException
createChannel in interface AnonServicetype - channeltype - only AnonChannel.SMTP is supported at the moment
IOException
java.net.ConnectException
public AnonChannel createChannel(java.lang.String host,
int port)
throws java.net.ConnectException
java.net.ConnectExceptionpublic void addEventListener(AnonServiceEventListener l)
AnonServiceAnonServiceEventListener.
addEventListener in interface AnonServicel - Listener to addpublic void removeEventListener(AnonServiceEventListener l)
AnonService
removeEventListener in interface AnonServicel - Listener, which will be removedpublic void removeEventListeners()
removeEventListeners in interface AnonServicepublic static Mixminion getInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||