| 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. |
| net.i2p.router.web.helpers | Helpers and handlers for the router console user interface, with these classes supporting the webapp in routerconsole.war. |
| Modifier and Type | Field and Description |
|---|---|
protected LeaseSet | I2PSessionImpl._leaseSetCurrently granted lease set, or null. |
| Modifier and Type | Method and Description |
|---|---|
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)In response to a RequestLeaseSet Message from the router, send a
CreateLeaseset Message back to the router. |
(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)Look up a LeaseSet in the local network database. |
abstract LeaseSet | NetworkDatabaseFacade.store(Hash key,
LeaseSet leaseSet)Store a LeaseSet in the network database. |
| Modifier and Type | Method and Description |
|---|---|
Set<LeaseSet> | NetworkDatabaseFacade.getClientLeases()The known client LeaseSets. |
Set<LeaseSet> | NetworkDatabaseFacade.getFloodfillLeases()The known floodfill LeaseSets. |
Set<LeaseSet> | NetworkDatabaseFacade.getLeases()All known LeaseSets for display. |
Set<LeaseSet> | NetworkDatabaseFacade.getPublishedLeases()The known published LeaseSets. |
Set<LeaseSet> | NetworkDatabaseFacade.getUnpublishedLeases()The known unpublished LeaseSets. |
| 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)Store a LeaseSet in the network database. |
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()The lease set that is being requested. |
| Modifier and Type | Method and Description |
|---|---|
(package private) void | ClientConnectionRunner.leaseSetCreated(LeaseSet ls)Called after a new leaseSet is granted by the client and 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)Build a garlic message that will be delivered to the router on which the target is located. |
| Modifier and Type | Method and Description |
|---|---|
LeaseSet | SearchState.getBestInitialLeaseSet()LeaseSet with the newest lease date among the initial responses. |
LeaseSet | SearchState.getNewestLeaseSet()LeaseSet with the newest lease date among the responses. |
LeaseSet | KademliaNetworkDatabaseFacade.lookupLeaseSetLocally(Hash key)LeaseSet stored locally. |
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()LeaseSets published by this router's clients. |
Set<LeaseSet> | KademliaNetworkDatabaseFacade.getFloodfillLeases()LeaseSets stored in the floodfill database. |
Set<LeaseSet> | KademliaNetworkDatabaseFacade.getLeases() |
Set<LeaseSet> | KademliaNetworkDatabaseFacade.getPublishedLeases()LeaseSets published to the network. |
Set<LeaseSet> | KademliaNetworkDatabaseFacade.getUnpublishedLeases()LeaseSets not published to the network. |
| Modifier and Type | Method and Description |
|---|---|
void | SearchState.addInitialLeaseSetResponse(Hash peer,
LeaseSet ls)Record the peer's LeaseSet response from the initial phase. |
void | SearchState.addLeaseSetResponse(Hash peer,
LeaseSet ls)Record the peer's LeaseSet response. |
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 to the network: stores it in this facade and,
for a client facade, also in the floodfill facade, then schedules
republishing. |
boolean | SearchState.shouldUpdateStored(LeaseSet ls)Whether the given LeaseSet is newer than the stored one. |
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 |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
int | NetDbComparators.LeaseSetComparator.compare(LeaseSet l,
LeaseSet r) |
int | NetDbComparators.LeaseSetRoutingKeyComparator.compare(LeaseSet l,
LeaseSet r) |