DEFAULT_SIGTYPE, PROP_FAST_RECEIVE, PROP_RELIABILITY, PROP_RELIABILITY_BEST_EFFORT, PROP_RELIABILITY_GUARANTEED, PROP_RELIABILITY_NONE, PROP_SIGTYPE, PROP_TCP_HOST, PROP_TCP_PORT, PROTOCOL_BYTE
Constructor and Description |
---|
I2PClientImpl() |
Modifier and Type | Method and Description |
---|---|
Destination |
createDestination(OutputStream destKeyStream)
Create a destination with a DSA 1024/160 signature type and a null certificate.
|
Destination |
createDestination(OutputStream destKeyStream,
Certificate cert)
Create the destination with the given payload and write it out along with
the PrivateKey and SigningPrivateKey to the destKeyStream
If cert is a KeyCertificate, the signing keypair will be of the specified type.
|
Destination |
createDestination(OutputStream destKeyStream,
SigType type)
Create a destination with the given signature type.
|
I2PSession |
createSession(I2PAppContext context,
InputStream destKeyStream,
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
createDestination
in interface I2PClient
destKeyStream
- location to write out the destination, PrivateKey, and SigningPrivateKey,
format is specified in PrivateKeyFile
I2PException
IOException
public Destination createDestination(OutputStream destKeyStream, SigType type) throws I2PException, IOException
createDestination
in interface I2PClient
destKeyStream
- location to write out the destination, PrivateKey, and SigningPrivateKey,
format is specified in PrivateKeyFile
I2PException
IOException
public Destination createDestination(OutputStream destKeyStream, Certificate cert) throws I2PException, IOException
createDestination
in interface I2PClient
destKeyStream
- location to write out the destination, PrivateKey, and SigningPrivateKey,
format is specified in PrivateKeyFile
cert
- 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 from,
format is specified in PrivateKeyFile
options
- set of options to configure the router with, if null will use System propertiesI2PSessionException
public I2PSession createSession(I2PAppContext context, InputStream destKeyStream, Properties options) throws I2PSessionException
destKeyStream
- location from which to read the Destination, PrivateKey, and SigningPrivateKey from,
format is specified in PrivateKeyFile
options
- set of options to configure the router with, if null will use System propertiesI2PSessionException