public interface I2PClient| Modifier and Type | Field and Description |
|---|---|
static int | DEFAULT_LISTEN_PORT7654 |
static SigType | DEFAULT_SIGTYPEDefault signature type. |
static String | PROP_ENABLE_SSLEnable SSL for I2CP connection. |
static String | PROP_FAST_RECEIVEFor router->client payloads. |
static String | PROP_GZIPEnable gzip compression for I2CP messages. |
static String | PROP_PWPassword for I2CP authentication. |
static String | PROP_RELIABILITYReliability property |
static String | PROP_RELIABILITY_BEST_EFFORTReliability value: best effort |
static String | PROP_RELIABILITY_GUARANTEEDReliability value: guaranteed |
static String | PROP_RELIABILITY_NONEReliability value: none. |
static String | PROP_SIGTYPEDestination signature type property. |
static String | PROP_TCP_HOSTStandard host property, defaulting to localhost if not specified |
static String | PROP_TCP_PORTStandard port number property |
static String | PROP_USERUsername for I2CP authentication. |
static int | PROTOCOL_BYTEprotocol flag that must be sent when opening the i2cp connection to the router |
| Modifier and Type | Method and Description |
|---|---|
Destination | createDestination(OutputStream destKeyStream)Create a new destination with the default certificate creation properties and store
it, along with the private encryption and signing keys at the specified location. |
Destination | createDestination(OutputStream destKeyStream,
Certificate cert)Create a new destination with the given certificate and store it, along with the private
encryption and signing keys at the specified location. |
Destination | createDestination(OutputStream destKeyStream,
SigType type)Create a destination with the given signature type. |
I2PSession | createSession(InputStream destKeyStream,
Properties options)Create a new client session for the Destination stored at the destKeyStream
using the specified options to both connect to the router, to instruct
the router how to handle the new session, and to configure the end to end
encryption. |
static final int DEFAULT_LISTEN_PORT
static final SigType DEFAULT_SIGTYPE
static final String PROP_ENABLE_SSL
static final String PROP_FAST_RECEIVE
static final String PROP_GZIP
static final String PROP_PW
static final String PROP_RELIABILITY
static final String PROP_RELIABILITY_BEST_EFFORT
static final String PROP_RELIABILITY_GUARANTEED
static final String PROP_RELIABILITY_NONE
static final String PROP_SIGTYPE
static final String PROP_TCP_HOST
static final String PROP_TCP_PORT
static final String PROP_USER
static final int PROTOCOL_BYTE
Destination createDestination(OutputStream destKeyStream) throws I2PException, IOException
destKeyStream - stream to write destination and keys toI2PException - on I2P protocol errorIOException - on IO errorDestination createDestination(OutputStream destKeyStream, Certificate cert) throws I2PException, IOException
destKeyStream - stream to write destination and keys tocert - certificate to tie to the destinationI2PException - on I2P protocol errorIOException - on IO errorDestination createDestination(OutputStream destKeyStream, SigType type) throws I2PException, IOException
destKeyStream - location to write out the destination, PrivateKey, and SigningPrivateKey,
format is specified in PrivateKeyFiletype - the signature type for the destinationI2PException - on I2P protocol errorIOException - on IO errorI2PSession createSession(InputStream destKeyStream, Properties options) throws I2PSessionException
destKeyStream - location from which to read the Destination, PrivateKey, and SigningPrivateKey from,
format is specified in PrivateKeyFileoptions - set of options to configure the router with, if null will use System propertiesI2PSessionException - if there is a problem creating the session