anon.mixminion.mmrdescription
Class MMRDescription

java.lang.Object
  extended by anon.mixminion.mmrdescription.MMRDescription

public class MMRDescription
extends java.lang.Object


Field Summary
private  java.lang.String m_address
           
private  boolean m_allowsFragmened
           
private  byte[] m_digest
           
private  MyRSAPublicKey m_IdentityKey
           
private  boolean m_isExitNode
           
private  byte[] m_keydigest
           
private  java.lang.String m_name
           
private  MyRSAPublicKey m_PacketKey
           
private  int m_port
           
private  java.text.SimpleDateFormat m_published
           
private  java.lang.String m_software
           
private static java.lang.String m_time
           
 
Constructor Summary
MMRDescription(java.lang.String address, java.lang.String name, int port, byte[] digest, byte[] keydigest, boolean exit, boolean fragmented, java.lang.String software, java.text.SimpleDateFormat published)
           
 
Method Summary
 boolean allowsFragmented()
           
 java.lang.String getAddress()
          gets the address of the MMR
 byte[] getDigest()
          gets the digest
static ExitInformation getExitInformation(java.lang.String[] email, byte[] decodinghandle)
           
 MyRSAPublicKey getIdentityKey()
          gets the IdentityKey
 byte[] getKeyDigest()
          gets the keydigest
 java.lang.String getName()
          gets the name of the MMR
 MyRSAPublicKey getPacketKey()
          gets the signing key
 int getPort()
          gets the port
 java.text.SimpleDateFormat getPublished()
           
 RoutingInformation getRoutingInformation()
          gets the Routing Informations of this MMR
 java.lang.String getSoftwareVersion()
           
 boolean isExitNode()
          returns if this server is an exit node
static MMRDescription parse(java.io.LineNumberReader reader)
          Tries to parse an router specification according to the desing document.
 boolean setIdentityKey(byte[] identitykey)
          sets the IdentityKey for this MMR
 boolean setPacketKey(byte[] packetKey)
          sets the Packet key
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_address

private java.lang.String m_address

m_name

private java.lang.String m_name

m_port

private int m_port

m_IdentityKey

private MyRSAPublicKey m_IdentityKey

m_PacketKey

private MyRSAPublicKey m_PacketKey

m_digest

private byte[] m_digest

m_keydigest

private byte[] m_keydigest

m_isExitNode

private boolean m_isExitNode

m_allowsFragmened

private boolean m_allowsFragmened

m_software

private java.lang.String m_software

m_published

private java.text.SimpleDateFormat m_published

m_time

private static java.lang.String m_time
Constructor Detail

MMRDescription

public MMRDescription(java.lang.String address,
                      java.lang.String name,
                      int port,
                      byte[] digest,
                      byte[] keydigest,
                      boolean exit,
                      boolean fragmented,
                      java.lang.String software,
                      java.text.SimpleDateFormat published)
Parameters:
address -
name -
port -
digest -
keydigest -
exit -
Method Detail

setIdentityKey

public boolean setIdentityKey(byte[] identitykey)
sets the IdentityKey for this MMR

Parameters:
IdentityKey - IdentityKey
Returns:
true if the key is a rsa key

getIdentityKey

public MyRSAPublicKey getIdentityKey()
gets the IdentityKey

Returns:
IdentityKey

getPublished

public java.text.SimpleDateFormat getPublished()
Returns:

setPacketKey

public boolean setPacketKey(byte[] packetKey)
sets the Packet key

Parameters:
packetkey - packetKey
Returns:
true if the packetKey is a rsa key

getPacketKey

public MyRSAPublicKey getPacketKey()
gets the signing key

Returns:
signing key

getDigest

public byte[] getDigest()
gets the digest

Returns:
digest

getKeyDigest

public byte[] getKeyDigest()
gets the keydigest

Returns:
digest

isExitNode

public boolean isExitNode()
returns if this server is an exit node

Returns:

allowsFragmented

public boolean allowsFragmented()

getAddress

public java.lang.String getAddress()
gets the address of the MMR

Returns:
address

getName

public java.lang.String getName()
gets the name of the MMR

Returns:
name

getPort

public int getPort()
gets the port

Returns:
port

getRoutingInformation

public RoutingInformation getRoutingInformation()
gets the Routing Informations of this MMR

Returns:
routingInformation Vector Vector with two byte[], first is the Routing Type, Second the Routing Information

getSoftwareVersion

public java.lang.String getSoftwareVersion()
Returns:
m_software

getExitInformation

public static ExitInformation getExitInformation(java.lang.String[] email,
                                                 byte[] decodinghandle)
Parameters:
email - vector with strings max 8
Returns:
vector with routingtype, routinginformation

parse

public static MMRDescription parse(java.io.LineNumberReader reader)
Tries to parse an router specification according to the desing document.

Parameters:
reader - reader

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object