anon.mixminion.message
Class Message

java.lang.Object
  extended by anon.mixminion.message.Message

public class Message
extends java.lang.Object

Author:
Jens Kempe, Stefan Roenisch

Field Summary
(package private)  double EXP_FACTOR
           
private  java.lang.String m_address
           
private  java.lang.String m_decoded
           
private  EMail m_email
           
private  int m_hops
           
private  java.lang.String m_keyringpassword
           
private  int m_rbs
           
(package private)  int MAX_FRAGMENTS_PER_CHUNK
           
 
Constructor Summary
Message(EMail email, int hops, java.lang.String myadress, java.lang.String password, int rbs)
          Constructor
 
Method Summary
private  int ceilDiv(double a, double b)
          rechte die Ganzzahl aus, welche groesser als a/b ist
(package private)  boolean encodeMessage()
           
 java.lang.String getDecoded()
           
 boolean send()
           
private  boolean sendToMixMinionServer(byte[] message, MMRDescription description)
          Send a message to the specified MMR
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_email

private EMail m_email

m_hops

private int m_hops

m_address

private java.lang.String m_address

m_decoded

private java.lang.String m_decoded

m_keyringpassword

private java.lang.String m_keyringpassword

m_rbs

private int m_rbs

MAX_FRAGMENTS_PER_CHUNK

int MAX_FRAGMENTS_PER_CHUNK

EXP_FACTOR

double EXP_FACTOR
Constructor Detail

Message

public Message(EMail email,
               int hops,
               java.lang.String myadress,
               java.lang.String password,
               int rbs)
Constructor

Method Detail

send

public boolean send()

encodeMessage

boolean encodeMessage()

sendToMixMinionServer

private boolean sendToMixMinionServer(byte[] message,
                                      MMRDescription description)
Send a message to the specified MMR

Parameters:
message -
description -
Returns:
true if sended successfully

ceilDiv

private int ceilDiv(double a,
                    double b)
rechte die Ganzzahl aus, welche groesser als a/b ist

Parameters:
a -
b -
Returns:

getDecoded

public java.lang.String getDecoded()