public class MixInfo extends AbstractDistributableCertifiedDatabaseEntry implements IVerifyable, Database.IWebInfo
AbstractDistributableDatabaseEntry.SerialDBEntry, AbstractDistributableDatabaseEntry.Serials
Modifier and Type | Field and Description |
---|---|
static int |
FIRST_MIX |
static java.lang.String |
INFOSERVICE_COMMAND_WEBINFO |
static java.lang.String |
INFOSERVICE_COMMAND_WEBINFOS |
static int |
LAST_MIX |
static int |
MIDDLE_MIX |
static java.lang.String |
NAME_TYPE_MIX |
static java.lang.String |
NAME_TYPE_OPERATOR |
static java.lang.String |
XML_ATTRIBUTE_NAME_FOR_CASCADE |
static java.lang.String |
XML_ELEM_PREMIUM_REMINDER |
static java.lang.String |
XML_ELEMENT_CONTAINER_NAME |
static java.lang.String |
XML_ELEMENT_MIX_NAME |
static java.lang.String |
XML_ELEMENT_NAME |
static java.lang.String |
XML_ELEMENT_WEBINFO_CONTAINER |
XML_ATTR_LAST_UPDATE, XML_ATTR_SERIAL, XML_ATTR_VALID, XML_ATTR_VERIFIED
XML_LAST_UPDATE
FIELD_XML_ELEMENT_WEBINFO_CONTAINER
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 |
---|
MixInfo(org.w3c.dom.Element a_mixNode)
Creates a new MixInfo from XML description (Mix node).
|
MixInfo(org.w3c.dom.Element a_mixNode,
long a_expireTime)
Creates a new MixInfo from XML description (Mix node).
|
MixInfo(org.w3c.dom.Element a_mixNode,
long a_expireTime,
boolean a_bFromCascade)
Creates a new MixInfo from XML description (Mix node).
|
MixInfo(MultiCertPath a_certPath) |
MixInfo(java.lang.String a_mixID,
MultiCertPath a_certPath,
XMLPriceCertificate a_priceCert,
long a_prepaidInterval) |
Modifier and Type | Method and Description |
---|---|
void |
deletePersistence() |
MultiCertPath |
getCertPath()
Returns the CertPath of the mix For MixInfo-Objects in the InfoService
the CertPath is null
|
DataRetentionInformation |
getDataRetentionInformation() |
java.lang.String |
getFirstHostName()
LERNGRUPPE Extracts the host name from first listenerinterface.
|
int |
getFirstPort()
LERNGRUPPE Extracts the port from first listenerinterface.
|
java.lang.String |
getId()
Returns the ID of the mix.
|
long |
getLastUpdate()
Returns the time (see System.currentTimeMillis()), when the mix has sent
this MixInfo to an infoservice.
|
java.util.Vector |
getListenerAddresses() |
java.util.Vector |
getListenerInterfaces() |
java.util.Vector |
getMonitoringListenerInterfaces() |
java.lang.String |
getName()
Returns the name of the mix.
|
java.lang.String |
getNameFragmentForCascade() |
java.lang.String |
getPostFile()
This returns the filename (InfoService command), where this mix entry is
posted at other InfoServices.
|
int |
getPremiumProbability() |
long |
getPrepaidInterval() |
XMLPriceCertificate |
getPriceCertificate() |
ServiceLocation |
getServiceLocation()
Returns the location of the mix.
|
ServiceOperator |
getServiceOperator()
Returns information about the operator of this mix.
|
ServiceSoftware |
getServiceSoftware()
Returns information about the used software in this mix.
|
XMLSignature |
getSignature() |
int |
getSymmetricChannelCipherAlgorithm() |
TermsAndConditionsMixInfo |
getTermsAndConditionMixInfo() |
int |
getType()
LERNGRUPPE Returns the type of this mix
|
java.lang.String |
getTypeAsString()
LERNGRUPPE Returns the type of this mix
|
long |
getVersionNumber()
Returns the time when this mix entry was created by the origin mix.
|
java.util.Vector |
getVisibleAddresses() |
org.w3c.dom.Element |
getWebInfo(org.w3c.dom.Document webInfoDoc) |
org.w3c.dom.Element |
getXmlStructure()
Returns the XML structure for this mix entry.
|
boolean |
isAccessControlled() |
boolean |
isCascadaNameFragmentUsed() |
boolean |
isDynamic()
LERNGRUPPE Returns
true if this mix is available for dynamic
cascades, false otherwise. |
boolean |
isFreeMix()
Returns whether the mix is waiting for a cascade assignment.
|
boolean |
isFromCascade()
Returns if this MixInfo has been received directly from a cascade
connection.
|
boolean |
isPayment() |
boolean |
isPersistanceDeletionAllowed() |
boolean |
isSocks5Supported() |
boolean |
isValid()
Returns if the object is valid at this time
|
boolean |
isVerified()
Returns if this entry has been verified with a certificate chain.
|
boolean |
isVPNSupported() |
void |
setFreeMix(boolean a_freeMix)
Changes the state of this mix (whether it is free or not).
|
void |
setPriceCertificate(XMLPriceCertificate newPriceCert) |
boolean |
supportsUDPoverUDP() |
checkId
getHttpRequestString, getHttpSerialsRequestString, getPostData, getPostEncoding, toXmlElement
getCreationTime, getExpireTime, isNewerThan, isUserDefined, resetCreationTime, setExpireTime
public static final java.lang.String NAME_TYPE_MIX
public static final java.lang.String NAME_TYPE_OPERATOR
public static final java.lang.String XML_ELEMENT_CONTAINER_NAME
public static final java.lang.String XML_ELEMENT_NAME
public static final java.lang.String XML_ELEMENT_MIX_NAME
public static final java.lang.String XML_ATTRIBUTE_NAME_FOR_CASCADE
public static final java.lang.String XML_ELEM_PREMIUM_REMINDER
public static final java.lang.String XML_ELEMENT_WEBINFO_CONTAINER
public static final java.lang.String INFOSERVICE_COMMAND_WEBINFOS
public static final java.lang.String INFOSERVICE_COMMAND_WEBINFO
public static final int FIRST_MIX
public static final int MIDDLE_MIX
public static final int LAST_MIX
public MixInfo(org.w3c.dom.Element a_mixNode) throws XMLParseException
a_mixNode
- The Mix node from an XML document.XMLParseException
public MixInfo(org.w3c.dom.Element a_mixNode, long a_expireTime) throws XMLParseException
a_mixNode
- The Mix node from an XML document.a_expireTime
- forces a specific expire time; takes default expire time if <= 0XMLParseException
public MixInfo(MultiCertPath a_certPath)
public MixInfo(java.lang.String a_mixID, MultiCertPath a_certPath, XMLPriceCertificate a_priceCert, long a_prepaidInterval)
public MixInfo(org.w3c.dom.Element a_mixNode, long a_expireTime, boolean a_bFromCascade) throws XMLParseException
a_mixNode
- The Mix node from an XML document.a_expireTime
- forces a specific expire time; takes default expire time if <= 0a_bFromCascade
- if this is a MixInfo node directly received from a cascade (it
is stripped) if true, the last update value is set to 0XMLParseException
public int getPremiumProbability()
public boolean isPersistanceDeletionAllowed()
isPersistanceDeletionAllowed
in class AbstractDatabaseEntry
public void deletePersistence()
deletePersistence
in class AbstractDatabaseEntry
public java.util.Vector getVisibleAddresses()
public java.util.Vector getListenerAddresses()
public java.util.Vector getListenerInterfaces()
public java.util.Vector getMonitoringListenerInterfaces()
public java.lang.String getId()
getId
in interface IDistributable
getId
in class AbstractDatabaseEntry
public boolean isSocks5Supported()
public boolean isVPNSupported()
public boolean isAccessControlled()
public int getSymmetricChannelCipherAlgorithm()
public boolean isFromCascade()
public long getLastUpdate()
getLastUpdate
in class AbstractDatabaseEntry
public long getVersionNumber()
getVersionNumber
in class AbstractDatabaseEntry
public java.lang.String getName()
public DataRetentionInformation getDataRetentionInformation()
public boolean isVerified()
AbstractDistributableCertifiedDatabaseEntry
isVerified
in interface IVerifyable
isVerified
in interface ICertifiedDatabaseEntry
isVerified
in class AbstractDistributableCertifiedDatabaseEntry
public boolean isValid()
IVerifyable
isValid
in interface IVerifyable
isValid
in interface ICertifiedDatabaseEntry
public XMLPriceCertificate getPriceCertificate()
public long getPrepaidInterval()
public void setPriceCertificate(XMLPriceCertificate newPriceCert)
public MultiCertPath getCertPath()
getCertPath
in interface IVerifyable
getCertPath
in interface ICertifiedDatabaseEntry
public XMLSignature getSignature()
getSignature
in interface ICertifiedDatabaseEntry
getSignature
in class AbstractDistributableCertifiedDatabaseEntry
public ServiceLocation getServiceLocation()
public ServiceOperator getServiceOperator()
public ServiceSoftware getServiceSoftware()
public boolean isFreeMix()
public void setFreeMix(boolean a_freeMix)
a_freeMix
- Whether to treat this mix as free (true) or not (false).public java.lang.String getPostFile()
getPostFile
in interface IDistributable
public org.w3c.dom.Element getXmlStructure()
getXmlStructure
in class AbstractDistributableDatabaseEntry
public int getType()
public boolean isPayment()
public java.lang.String getTypeAsString()
public boolean isDynamic()
true
if this mix is available for dynamic
cascades, false
otherwise.true
if this mix is available for dynamic
cascades, false
otherwise.public java.lang.String getFirstHostName() throws java.lang.Exception
java.lang.Exception
public int getFirstPort() throws java.lang.Exception
java.lang.Exception
public boolean isCascadaNameFragmentUsed()
public java.lang.String getNameFragmentForCascade()
public TermsAndConditionsMixInfo getTermsAndConditionMixInfo()
public org.w3c.dom.Element getWebInfo(org.w3c.dom.Document webInfoDoc)
getWebInfo
in interface Database.IWebInfo
public boolean supportsUDPoverUDP()
Copyright © 2023. All rights reserved.