|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.I2PClientImpl
class I2PClientImpl
Base client implementation
Field Summary |
---|
Fields inherited from interface net.i2p.client.I2PClient |
---|
PROP_RELIABILITY, PROP_RELIABILITY_BEST_EFFORT, PROP_RELIABILITY_GUARANTEED, PROP_TCP_HOST, PROP_TCP_PORT, PROTOCOL_BYTE |
Constructor Summary | |
---|---|
I2PClientImpl()
|
Method Summary | |
---|---|
Destination |
createDestination(java.io.OutputStream destKeyStream)
Create the destination with a null payload |
Destination |
createDestination(java.io.OutputStream destKeyStream,
Certificate cert)
Create the destination with the given payload and write it out along with the PrivateKey and SigningPrivateKey to the destKeyStream |
I2PSession |
createSession(I2PAppContext context,
java.io.InputStream destKeyStream,
java.util.Properties options)
Create a new session (though do not connect it yet) |
I2PSession |
createSession(java.io.InputStream destKeyStream,
java.util.Properties options)
Create a new session (though do not connect it yet) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
I2PClientImpl()
Method Detail |
---|
public Destination createDestination(java.io.OutputStream destKeyStream) throws I2PException, java.io.IOException
createDestination
in interface I2PClient
destKeyStream
- create a new destination and write out the object to the given stream,
formatted as Destination, PrivateKey, and SigningPrivateKey
I2PException
java.io.IOException
public Destination createDestination(java.io.OutputStream destKeyStream, Certificate cert) throws I2PException, java.io.IOException
createDestination
in interface I2PClient
destKeyStream
- location to write out the destination, PrivateKey, and SigningPrivateKeycert
- certificate to tie to the destination
I2PException
java.io.IOException
public I2PSession createSession(java.io.InputStream destKeyStream, java.util.Properties options) throws I2PSessionException
createSession
in interface I2PClient
destKeyStream
- location from which to read the Destination, PrivateKey, and SigningPrivateKey fromoptions
- set of options to configure the router with
I2PSessionException
public I2PSession createSession(I2PAppContext context, java.io.InputStream destKeyStream, java.util.Properties options) throws I2PSessionException
I2PSessionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |