net.i2p.client
PROP_RELIABILITY, PROP_RELIABILITY_BEST_EFFORT, PROP_RELIABILITY_GUARANTEED, PROP_RELIABILITY_NONE, PROP_TCP_HOST, PROP_TCP_PORT, PROTOCOL_BYTE
Constructor and Description |
---|
I2PSimpleClient() |
Modifier and Type | Method and Description |
---|---|
Destination |
createDestination(OutputStream destKeyStream)
Deprecated.
Don't do this
|
Destination |
createDestination(OutputStream destKeyStream,
Certificate cert)
Deprecated.
or this
|
I2PSession |
createSession(I2PAppContext context,
Properties options)
Create a new session (though do not connect it yet)
|
I2PSession |
createSession(InputStream destKeyStream,
Properties options)
Create a new session (though do not connect it yet)
|
public Destination createDestination(OutputStream destKeyStream) throws I2PException, IOException
I2PClient
createDestination
in interface I2PClient
destKeyStream
- create a new destination and write out the object to the given stream,
formatted as Destination, PrivateKey, and SigningPrivateKeyI2PException
IOException
public Destination createDestination(OutputStream destKeyStream, Certificate cert) throws I2PException, IOException
I2PClient
createDestination
in interface I2PClient
destKeyStream
- location to write out the destination, PrivateKey, and SigningPrivateKeycert
- certificate to tie to the destinationI2PException
IOException
public I2PSession createSession(InputStream destKeyStream, 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, if null will use System propertiesI2PSessionException
public I2PSession createSession(I2PAppContext context, Properties options) throws I2PSessionException
I2PSessionException