| Package | Description |
|---|---|
| net.i2p.client.impl | Internal implementation of the I2P client SDK, providing the client
side of the I2CP protocol for applications communicating through I2P. |
| net.i2p.data | These classes define the common data structures used by the various I2P protocols. |
| net.i2p.data.i2cp | The Invisible Internet Client Protocol (I2CP) allows applications simplified access to I2P network without requiring them to deal with the issues involved with the Invisible Internet Network Protocol (I2NP). |
| net.i2p.router | The I2P router application handles I2P network communication. |
| net.i2p.router.client | Router-side implementation of the I2CP (I2P Client Protocol) interface for application integration. |
| net.i2p.router.dummy | Dummy implementations and stub classes for testing purposes. |
| net.i2p.router.message | Garlic message creation, parsing, and source routing for I2P communications. |
| net.i2p.router.networkdb.kademlia | Kademlia DHT implementation and floodfill router functionality for I2P. |
| net.i2p.router.tunnel.pool | Tunnel pool management, creation, and peer selection for I2P's anonymous routing system. |
| Modifier and Type | Field and Description |
|---|---|
protected LeaseSet | I2PSessionImpl._leaseSetcurrently granted lease set, or null |
| Modifier and Type | Method and Description |
|---|---|
(package private) LeaseSet | I2PSessionImpl.getLeaseSet()Current lease set published by this session. |
| Modifier and Type | Method and Description |
|---|---|
void | I2CPMessageProducer.createLeaseSet(I2PSessionImpl session,
LeaseSet leaseSet,
SigningPrivateKey signingPriv,
List<PrivateKey> privs)Send a CreateLeaseSet message. |
(package private) void | I2PSessionImpl.setLeaseSet(LeaseSet ls)Lease set published by this session. |
protected void | RequestLeaseSetMessageHandler.signLeaseSet(LeaseSet leaseSet,
boolean isLS2,
I2PSessionImpl session)Finish creating and signing the new LeaseSet |
| Modifier and Type | Class and Description |
|---|---|
class | EncryptedLeaseSetImplementation of EncryptedLeaseSet as specified in
Proposal 123: New NetDb Entries. |
class | LeaseSet2Implementation of LeaseSet2 as specified in
Proposal 123: New NetDb Entries. |
class | MetaLeaseSetImplementation of MetaLeaseSet as specified in
Proposal 123: New NetDb Entries. |
| Modifier and Type | Field and Description |
|---|---|
protected LeaseSet | CreateLeaseSetMessage._leaseSetthe lease set |
| Modifier and Type | Method and Description |
|---|---|
LeaseSet | CreateLeaseSetMessage.getLeaseSet()Lease set being created. |
| Modifier and Type | Method and Description |
|---|---|
void | CreateLeaseSetMessage.setLeaseSet(LeaseSet leaseSet)Lease set being created. |
| Modifier and Type | Method and Description |
|---|---|
abstract LeaseSet | NetworkDatabaseFacade.lookupLeaseSetLocally(Hash key)key). |
abstract LeaseSet | NetworkDatabaseFacade.store(Hash key,
LeaseSet leaseSet) |
| Modifier and Type | Method and Description |
|---|---|
Set<LeaseSet> | NetworkDatabaseFacade.getClientLeases() |
Set<LeaseSet> | NetworkDatabaseFacade.getFloodfillLeases() |
Set<LeaseSet> | NetworkDatabaseFacade.getLeases()Get all known LeaseSets for display. |
Set<LeaseSet> | NetworkDatabaseFacade.getPublishedLeases() |
Set<LeaseSet> | NetworkDatabaseFacade.getUnpublishedLeases() |
| Modifier and Type | Method and Description |
|---|---|
abstract void | NetworkDatabaseFacade.publish(LeaseSet localLeaseSet)Publish a LeaseSet to the network database. |
abstract void | ClientManagerFacade.requestLeaseSet(Destination dest,
LeaseSet set,
long timeout,
Job onCreateJob,
Job onFailedJob)Request that a particular client authorize the Leases contained in the
LeaseSet, after which the onCreateJob is queued up. |
abstract void | ClientManagerFacade.requestLeaseSet(Hash dest,
LeaseSet set)Request that the client authorize the Leases contained in the
LeaseSet, identified by destination hash. |
abstract LeaseSet | NetworkDatabaseFacade.store(Hash key,
LeaseSet leaseSet) |
abstract void | NetworkDatabaseFacade.unpublish(LeaseSet localLeaseSet)Unpublish a LeaseSet from the network database. |
| Modifier and Type | Method and Description |
|---|---|
LeaseSet | ClientConnectionRunner.getLeaseSet(Hash h)Currently allocated leaseSet. |
LeaseSet | LeaseRequestState.getRequested()Get the requested lease set. |
| Modifier and Type | Method and Description |
|---|---|
(package private) void | ClientConnectionRunner.leaseSetCreated(LeaseSet ls)called after a new leaseSet is granted by the client, the NetworkDb has been
updated. |
void | ClientManager.requestLeaseSet(Destination dest,
LeaseSet set,
long timeout,
Job onCreateJob,
Job onFailedJob)Request that a particular client authorize the Leases contained in the
LeaseSet, after which the onCreateJob is queued up. |
void | ClientManagerFacadeImpl.requestLeaseSet(Destination dest,
LeaseSet set,
long timeout,
Job onCreateJob,
Job onFailedJob)Request that a particular client authorize the Leases contained in the LeaseSet,
after which the onCreateJob is queued up. |
void | ClientManager.requestLeaseSet(Hash dest,
LeaseSet ls)Request that a particular client authorize the Leases contained in the
LeaseSet. |
void | ClientManagerFacadeImpl.requestLeaseSet(Hash dest,
LeaseSet set)Request that a particular client authorize the Leases contained in the LeaseSet. |
(package private) void | ClientConnectionRunner.requestLeaseSet(Hash h,
LeaseSet set,
long expirationTime,
Job onCreateJob,
Job onFailedJob)Request that a particular client authorize the Leases contained in the
LeaseSet, after which the onCreateJob is queued up. |
| Constructor and Description |
|---|
LeaseRequestState(Job onGranted,
Job onFailed,
long currentEarliestLeastDate,
long expiration,
LeaseSet requested)Create a new LeaseRequestState. |
| Modifier and Type | Method and Description |
|---|---|
LeaseSet | DummyNetworkDatabaseFacade.lookupLeaseSetLocally(Hash key) |
LeaseSet | DummyNetworkDatabaseFacade.store(Hash key,
LeaseSet leaseSet)Store a key locally |
| Modifier and Type | Method and Description |
|---|---|
void | DummyNetworkDatabaseFacade.publish(LeaseSet localLeaseSet)Publish a key to the network |
void | DummyClientManagerFacade.requestLeaseSet(Destination dest,
LeaseSet set,
long timeout,
Job onCreateJob,
Job onFailedJob) |
void | DummyClientManagerFacade.requestLeaseSet(Hash dest,
LeaseSet set) |
LeaseSet | DummyNetworkDatabaseFacade.store(Hash key,
LeaseSet leaseSet)Store a key locally |
void | DummyNetworkDatabaseFacade.unpublish(LeaseSet localLeaseSet)Remove a key from publication |
| Modifier and Type | Field and Description |
|---|---|
(package private) ConcurrentHashMap<OutboundCache.HashPair,LeaseSet> | OutboundCache.leaseSetCacheLeaseSet cache keyed by source-destination pairs. |
ConcurrentHashMap<Hash,LeaseSet> | OutboundCache.multihomedCacheCache for LeaseSets associated with multihomed routers or hosted destinations. |
| Modifier and Type | Method and Description |
|---|---|
(package private) static GarlicMessage | OutboundClientMessageJobHelper.createGarlicMessage(RouterContext ctx,
long replyToken,
long expiration,
PublicKey recipientPK,
PayloadGarlicConfig dataClove,
Hash from,
Destination dest,
TunnelInfo replyTunnel,
int tagsToSendOverride,
int lowTagsOverride,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
boolean requireAck,
LeaseSet bundledReplyLeaseSet,
ReplyCallback callback)Allow the app to specify the data clove directly, which enables OutboundClientMessage to resend the
same payload (including expiration and unique id) in different garlics (down different tunnels)
This is called from OCMOSJ |
| Modifier and Type | Method and Description |
|---|---|
LeaseSet | SearchState.getBestInitialLeaseSet() |
LeaseSet | SearchState.getNewestLeaseSet() |
LeaseSet | KademliaNetworkDatabaseFacade.lookupLeaseSetLocally(Hash key) |
LeaseSet | KademliaNetworkDatabaseFacade.store(Hash key,
LeaseSet leaseSet) |
LeaseSet | KademliaNetworkDatabaseFacade.store(Hash key,
LeaseSet leaseSet,
boolean force)Store the leaseSet. |
| Modifier and Type | Method and Description |
|---|---|
Set<LeaseSet> | KademliaNetworkDatabaseFacade.getClientLeases()Public for NetDbRenderer in routerconsole |
Set<LeaseSet> | KademliaNetworkDatabaseFacade.getFloodfillLeases() |
Set<LeaseSet> | KademliaNetworkDatabaseFacade.getLeases()Public for NetDbRenderer in routerconsole |
Set<LeaseSet> | KademliaNetworkDatabaseFacade.getPublishedLeases()Public for NetDbRenderer in routerconsole |
Set<LeaseSet> | KademliaNetworkDatabaseFacade.getUnpublishedLeases()Public for NetDbRenderer in routerconsole |
| Modifier and Type | Method and Description |
|---|---|
void | SearchState.addInitialLeaseSetResponse(Hash peer,
LeaseSet ls)addInitialLeaseSetResponse. |
void | SearchState.addLeaseSetResponse(Hash peer,
LeaseSet ls)addLeaseSetResponse. |
static boolean | KademliaNetworkDatabaseFacade.isNewer(LeaseSet a,
LeaseSet b)Utility to determine if a is newer than b. |
void | KademliaNetworkDatabaseFacade.publish(LeaseSet localLeaseSet)Publishes a local LeaseSet by storing it and scheduling republishing if applicable. |
boolean | SearchState.shouldUpdateStored(LeaseSet ls) |
LeaseSet | KademliaNetworkDatabaseFacade.store(Hash key,
LeaseSet leaseSet) |
LeaseSet | KademliaNetworkDatabaseFacade.store(Hash key,
LeaseSet leaseSet,
boolean force)Store the leaseSet. |
void | KademliaNetworkDatabaseFacade.unpublish(LeaseSet localLeaseSet) |
String | KademliaNetworkDatabaseFacade.validate(Hash key,
LeaseSet leaseSet)Validates whether the given LeaseSet is acceptable as valid and current based on current known parameters. |
| Modifier and Type | Method and Description |
|---|---|
(package private) LeaseSet | TunnelPool.getInboundTunnelsAsLeaseSet()Build and return current LeaseSet from our tunnels. |
protected LeaseSet | AliasedTunnelPool.locked_buildNewLeaseSet() |
protected LeaseSet | TunnelPool.locked_buildNewLeaseSet()Build a leaseSet with the required tunnels that aren't about to expire. |