|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectexternalInformationPort.InformationGrabber
final class InformationGrabber
Can be used to retrieve Information
from "external"
communication partners (e. g. other mixes or clients) vie network (UDP).
Client
,
Information
Field Summary | |
---|---|
protected static int |
MAX_PACKET_SIZE
Maximum size a packet received by getInformation() may
have. |
private static int |
TIMEOUT
Timeout for reply on a request. |
Constructor Summary | |
---|---|
protected |
InformationGrabber()
Creates a new InformationGrabber that can be used to
retrieve Information from "external" communication partners
(e. g. other mixes or clients) vie network (UDP). |
Method Summary | |
---|---|
protected static byte[] |
getInformation(java.net.InetAddress informationProviderAddress,
int informationProviderPort,
Information informationOfInterest,
byte[] data)
Generic method to receive some Information from a
specified InformationProvider -component. |
protected static byte[][] |
getInformationFromAll(java.net.InetAddress informationProviderAddress,
int informationProviderPort,
Information informationOfInterest,
byte[] data)
Generic method to receive some Information from several
ExternalInformationPort components. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int MAX_PACKET_SIZE
getInformation()
may
have.
getInformation(InetAddress, int, Information, byte[])
,
Constant Field Valuesprivate static final int TIMEOUT
Constructor Detail |
---|
protected InformationGrabber()
InformationGrabber
that can be used to
retrieve Information
from "external" communication partners
(e. g. other mixes or clients) vie network (UDP). Empty Constructor,
since all methods are static.
Method Detail |
---|
protected static byte[] getInformation(java.net.InetAddress informationProviderAddress, int informationProviderPort, Information informationOfInterest, byte[] data) throws InformationRetrieveException
Information
from a
specified InformationProvider
-component.
If communication channel isn't safe, but transmitted data is sensitive, cryptographic measures (like authentication and encryption) should be applied.
informationProviderAddress
- Address of the
InformationProvider
-component to receive data from.informationProviderPort
- Port the InformationProvider
-component to receive data
from runs on.informationOfInterest
- Type of Information
,
that shall be received.
Information
.
InformationRetrieveException
- Thrown, when requested
Information
not
available.protected static byte[][] getInformationFromAll(java.net.InetAddress informationProviderAddress, int informationProviderPort, Information informationOfInterest, byte[] data) throws InformationRetrieveException
Information
from several
ExternalInformationPort
components. The first component's
address and port number must be specified. The other components'
addresses are received by their predecessor (= telescope
implementation).
If communication channel isn't safe, but transmitted data is sensitive, cryptographic measures (like authentication and encryption) should be applied.
informationProviderAddress
- Address of the first
InformationProvider
component to receive data from.informationProviderPort
- Port the first
InformationProvider
component to receive data from runs
on.informationOfInterest
- Type of Information
,
that shall be received.data
- Data to be transmitted.
Information
s.
InformationRetrieveException
- Thrown, when requested
Information
not
available.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |