public class MMRDescription
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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() |
private java.lang.String m_address
private java.lang.String m_name
private int m_port
private MyRSAPublicKey m_IdentityKey
private MyRSAPublicKey m_PacketKey
private byte[] m_digest
private byte[] m_keydigest
private boolean m_isExitNode
private boolean m_allowsFragmened
private java.lang.String m_software
private java.text.SimpleDateFormat m_published
private static java.lang.String m_time
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)
address
- name
- port
- digest
- keydigest
- exit
- public boolean setIdentityKey(byte[] identitykey)
IdentityKey
- IdentityKeypublic MyRSAPublicKey getIdentityKey()
public java.text.SimpleDateFormat getPublished()
public boolean setPacketKey(byte[] packetKey)
packetkey
- packetKeypublic MyRSAPublicKey getPacketKey()
public byte[] getDigest()
public byte[] getKeyDigest()
public boolean isExitNode()
public boolean allowsFragmented()
public java.lang.String getAddress()
public java.lang.String getName()
public int getPort()
public RoutingInformation getRoutingInformation()
public java.lang.String getSoftwareVersion()
public static ExitInformation getExitInformation(java.lang.String[] email, byte[] decodinghandle)
email
- vector with strings max 8public static MMRDescription parse(java.io.LineNumberReader reader)
reader
- readerpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2023. All rights reserved.