anon.mixminion
Class EMail
java.lang.Object
anon.mixminion.EMail
public class EMail
- extends java.lang.Object
Constructor Summary |
EMail(java.lang.String[] receiver,
java.lang.String payload)
The Constructor of an eMail, which scould be send over the MixMinion-Net |
Method Summary |
void |
addRBtoPayload(java.lang.String p)
Adds the specified Replyblock(as String) to the payload |
java.lang.String |
getPayload()
|
java.lang.String[] |
getReceiver()
|
java.util.Vector |
getReplyBlocks()
|
java.lang.String |
getType()
|
private boolean |
testonEncrypted(java.lang.String p)
test a given E-Mail payload if its encrypted or not |
java.lang.String |
toString()
|
private java.lang.String |
trimPayload(java.lang.String p)
removes/overwrites non anonym headers
brings the ascii armor of an replyblock in the right form |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_receiver
private java.lang.String[] m_receiver
m_payload
private java.lang.String m_payload
m_replyblocks
private java.util.Vector m_replyblocks
m_type
private java.lang.String m_type
m_multipartid
private java.lang.String m_multipartid
EMail
public EMail(java.lang.String[] receiver,
java.lang.String payload)
- The Constructor of an eMail, which scould be send over the MixMinion-Net
- Parameters:
receiver,
- a list of receivers of this eMailpayload,
- the Payload of this eMail
testonEncrypted
private boolean testonEncrypted(java.lang.String p)
- test a given E-Mail payload if its encrypted or not
- Parameters:
p
-
- Returns:
getReceiver
public java.lang.String[] getReceiver()
- Returns:
- the Receivers of this eMail
getPayload
public java.lang.String getPayload()
- Returns:
- the Payload of this eMail
addRBtoPayload
public void addRBtoPayload(java.lang.String p)
- Adds the specified Replyblock(as String) to the payload
- Parameters:
p
-
getType
public java.lang.String getType()
- Returns:
- String NOR=Normal; RPL = Replymessage; ENC = content to decode locally
getReplyBlocks
public java.util.Vector getReplyBlocks()
- Returns:
- ReplyBlock
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
trimPayload
private java.lang.String trimPayload(java.lang.String p)
throws java.io.IOException
- removes/overwrites non anonym headers
brings the ascii armor of an replyblock in the right form
- Parameters:
p
-
- Returns:
-
- Throws:
java.io.IOException