public class ANONAddress extends AbstractDistributableDatabaseEntry
AbstractDistributableDatabaseEntry.SerialDBEntry, AbstractDistributableDatabaseEntry.Serials
Modifier and Type | Field and Description |
---|---|
private byte[] |
m_arBlindedKey |
private byte[] |
m_bytesPostData
The same as above as byte[]
|
private long |
m_lastUpdate |
private java.lang.String |
m_strAddress |
private java.lang.String |
m_strID |
private org.w3c.dom.Element |
m_xmlStructure
Stores the XML structure of this ANONAddress.
|
private static int |
MAX_ADDRESS_SIZE |
private static int |
MAX_BLINDED_KEY_SIZE |
private static long |
MAX_STORAGE_TIME_IN_MILLI_SECONDS |
private static int |
MAX_XML_STRUCT_SIZE |
static java.lang.String |
XML_ELEMENT_NAME |
XML_ATTR_LAST_UPDATE, XML_ATTR_SERIAL, XML_ATTR_VALID, XML_ATTR_VERIFIED
XML_LAST_UPDATE
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Constructor and Description |
---|
ANONAddress(java.lang.String id,
org.w3c.dom.Element a_elemAnonAddressRootNode) |
ANONAddress(java.lang.String id,
java.lang.String addr,
byte[] arBlindedKey) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress() |
byte[] |
getBlindeyKey() |
java.lang.String |
getId()
Returns a unique ID for a database entry.
|
long |
getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance.
|
byte[] |
getPostData()
This returns the data, which are posted to other InfoServices.
|
java.lang.String |
getPostFile()
This returns the filename (InfoService command), where this ANONAddress
information is posted to other InfoServices, It's '/anonaddress/id'.
|
long |
getVersionNumber()
Returns version number which is used to determine the more recent infoservice entry, if two
entries are compared (higher version number -> more recent entry).
|
static java.lang.String |
getXmlElementName() |
org.w3c.dom.Element |
getXmlStructure()
Returns the XML structure of this ANONaddress.
|
private org.w3c.dom.Element |
toXMLElement() |
getHttpRequestString, getHttpSerialsRequestString, getPostEncoding, toXmlElement
deletePersistence, getCreationTime, getExpireTime, isNewerThan, isPersistanceDeletionAllowed, isUserDefined, resetCreationTime, setExpireTime
public static final java.lang.String XML_ELEMENT_NAME
private static final long MAX_STORAGE_TIME_IN_MILLI_SECONDS
private static final int MAX_ADDRESS_SIZE
private static final int MAX_BLINDED_KEY_SIZE
private static final int MAX_XML_STRUCT_SIZE
private java.lang.String m_strID
private org.w3c.dom.Element m_xmlStructure
private byte[] m_bytesPostData
private long m_lastUpdate
private java.lang.String m_strAddress
private byte[] m_arBlindedKey
public ANONAddress(java.lang.String id, org.w3c.dom.Element a_elemAnonAddressRootNode) throws java.lang.Exception
java.lang.Exception
public ANONAddress(java.lang.String id, java.lang.String addr, byte[] arBlindedKey)
private org.w3c.dom.Element toXMLElement()
public java.lang.String getPostFile()
public org.w3c.dom.Element getXmlStructure()
getXmlStructure
in class AbstractDistributableDatabaseEntry
public byte[] getPostData()
AbstractDistributableDatabaseEntry
getPostData
in interface IDistributable
getPostData
in class AbstractDistributableDatabaseEntry
public java.lang.String getId()
AbstractDatabaseEntry
getId
in interface IDistributable
getId
in class AbstractDatabaseEntry
public long getLastUpdate()
AbstractDatabaseEntry
getLastUpdate
in class AbstractDatabaseEntry
public long getVersionNumber()
AbstractDatabaseEntry
getVersionNumber
in class AbstractDatabaseEntry
public static java.lang.String getXmlElementName()
public java.lang.String getAddress()
public byte[] getBlindeyKey()
Copyright © 2023. All rights reserved.