|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanon.infoservice.AbstractDatabaseEntry
infoservice.japforwarding.ForwarderDBEntry
public class ForwarderDBEntry
This is the implementation of a JAP forwarder entry, which can be stored in the forwarder database.
| Field Summary | |
|---|---|
private static int |
CAPTCHA_KEY_BITS
This is the number of bits of an AES key, which are embedded within a captcha. |
private static int |
EXTRA_KEY_BITS
This is the number of extra key bits (maybe 0), which are not embedded in the captcha. |
private long |
m_creationTimeStamp
Stores the time when this ForwarderDBEntry was created. |
private java.net.InetAddress |
m_forwarderAddress
Stores the internet address of the forwarder. |
private byte[] |
m_forwarderData
Stores the plain data which are used when generating the cipher data with the captcha key. |
private int |
m_forwarderPort
Stores the port number of the forwarder. |
private java.lang.String |
m_id
Stores the ID for this ForwarderDBEntry. |
| Fields inherited from class anon.infoservice.AbstractDatabaseEntry |
|---|
XML_LAST_UPDATE |
| Constructor Summary | |
|---|---|
|
ForwarderDBEntry(java.net.InetAddress a_forwarderAddress,
int a_forwarderPort)
Creates a new ForwarderDBEntry. |
private |
ForwarderDBEntry(java.net.InetAddress a_forwarderAddress,
int a_forwarderPort,
byte[] a_forwarderData,
java.lang.String a_id)
This internal constructor is needed for creating a clone of a ForwarderDBEntry, needed for updating the forwarder database. |
| Method Summary | |
|---|---|
org.w3c.dom.Element |
createCaptchaNode()
Creates the JapForwarder node with the captcha data included. |
java.lang.String |
getId()
Returns a unique ID for this forwarder database entry. |
long |
getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance. |
ForwarderDBEntry |
getUpdateClone()
Returns a clone of this ForwarderDBEntry. |
long |
getVersionNumber()
Returns the time when this ForwarderDBEntry was created. |
| Methods inherited from class anon.infoservice.AbstractDatabaseEntry |
|---|
getCreationTime, getExpireTime, isNewerThan, isUserDefined, resetCreationTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int CAPTCHA_KEY_BITS
private static final int EXTRA_KEY_BITS
private java.net.InetAddress m_forwarderAddress
private int m_forwarderPort
private byte[] m_forwarderData
private java.lang.String m_id
private long m_creationTimeStamp
| Constructor Detail |
|---|
public ForwarderDBEntry(java.net.InetAddress a_forwarderAddress,
int a_forwarderPort)
throws java.lang.Exception
a_forwarderAddress - The internet address of the forwarder. At the moment, only IPv4
addresses are supported.a_forwarderPort - The port number the forwarder listens on.
java.lang.Exception
private ForwarderDBEntry(java.net.InetAddress a_forwarderAddress,
int a_forwarderPort,
byte[] a_forwarderData,
java.lang.String a_id)
a_forwarderAddress - The internet address of the forwarder.a_forwarderPort - The port number the forwarder listens on.a_forwarderData - The data block with the IP and port of the forwarder, which is used
for AES encryption.a_id - The ID of this forwarder database entry.| Method Detail |
|---|
public ForwarderDBEntry getUpdateClone()
public java.lang.String getId()
getId in class AbstractDatabaseEntrypublic long getLastUpdate()
AbstractDatabaseEntry
getLastUpdate in class AbstractDatabaseEntrypublic long getVersionNumber()
getVersionNumber in class AbstractDatabaseEntry
public org.w3c.dom.Element createCaptchaNode()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||