Packages that use LeaseSet
Package
Description
Internal implementation of the I2P client SDK - the client side of the Invisible Internet Client Protocol (I2CP), separating implementation from the interfaces in
net.i2p.client. Common data structures used by the I2P protocols: Destination, LeaseSet, PublicKey, Signature, Certificate and their friends.
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).
The I2P router application handles I2P network communication.
Router-side implementation of the Invisible Internet Client Protocol (I2CP): client sessions over plain or TLS sockets, message delivery, and lease and tunnel management on behalf of clients.
Simplified fake implementations of router interfaces (comm system and friends) for testing and embedded builds.
Garlic message creation, parsing and handling, and the outbound message jobs: one-shot sends, source routing and delivery status handling.
The Kademlia distributed hash table (DHT) network database: lookup, store and explore jobs, the data store, the floodfill variants, and lookup throttling.
Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Helpers and handlers for the router console user interface, packaged in routerconsole.war and accessible only from JSP files.
Uses of LeaseSet in net.i2p.client.impl
Fields in net.i2p.client.impl declared as LeaseSetModifier and TypeFieldDescriptionprotected LeaseSetI2PSessionImpl._leaseSetCurrently granted lease set, or null.Methods in net.i2p.client.impl that return LeaseSetModifier and TypeMethodDescriptionI2PSessionImpl.getLeaseSet()Current lease set published by this session.Methods in net.i2p.client.impl with parameters of type LeaseSetModifier and TypeMethodDescriptionvoidI2CPMessageProducer.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) static booleanRequestLeaseSetMessageHandler.isSignable(LeaseSet leaseSet) Whether a LeaseSet can be signed.(package private) voidI2PSessionImpl.setLeaseSet(LeaseSet ls) Lease set published by this session.protected booleanRequestLeaseSetMessageHandler.signLeaseSet(LeaseSet leaseSet, boolean isLS2, I2PSessionImpl session) Finish creating and signing the new LeaseSet and submitting it to the router.protected booleanRequestLeaseSetMessageHandler.signLeaseSet(LeaseSet leaseSet, boolean isLS2, I2PSessionImpl session, I2CPMessage message, int attempt) Finish creating and signing the new LeaseSet and submitting it to the router, with the originating request attached so a transient signing failure can schedule a prompt re-run instead of leaving the router to wait out its 60-second check timeout.Uses of LeaseSet in net.i2p.data
Subclasses of LeaseSet in net.i2p.dataModifier and TypeClassDescriptionclassImplementation of EncryptedLeaseSet as specified in Proposal 123: New NetDb Entries.classImplementation of LeaseSet2 as specified in Proposal 123: New NetDb Entries.classImplementation of MetaLeaseSet as specified in Proposal 123: New NetDb Entries.Uses of LeaseSet in net.i2p.data.i2cp
Fields in net.i2p.data.i2cp declared as LeaseSetMethods in net.i2p.data.i2cp that return LeaseSetMethods in net.i2p.data.i2cp with parameters of type LeaseSetModifier and TypeMethodDescriptionvoidCreateLeaseSetMessage.setLeaseSet(LeaseSet leaseSet) Lease set being created.Uses of LeaseSet in net.i2p.router
Methods in net.i2p.router that return LeaseSetModifier and TypeMethodDescriptionabstract LeaseSetNetworkDatabaseFacade.lookupLeaseSetLocally(Hash key) Look up a LeaseSet in the local network database.abstract LeaseSetStore a LeaseSet in the network database.Methods in net.i2p.router that return types with arguments of type LeaseSetModifier and TypeMethodDescriptionNetworkDatabaseFacade.getClientLeases()The known client LeaseSets.NetworkDatabaseFacade.getFloodfillLeases()The known floodfill LeaseSets.NetworkDatabaseFacade.getLeases()All known LeaseSets for display.NetworkDatabaseFacade.getPublishedLeases()The known published LeaseSets.NetworkDatabaseFacade.getUnpublishedLeases()The known unpublished LeaseSets.Methods in net.i2p.router with parameters of type LeaseSetModifier and TypeMethodDescriptionabstract voidPublish a LeaseSet to the network database.abstract voidClientManagerFacade.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 voidClientManagerFacade.requestLeaseSet(Hash dest, LeaseSet set) Request that the client authorize the Leases contained in the LeaseSet, identified by destination hash.abstract LeaseSetStore a LeaseSet in the network database.abstract voidUnpublish a LeaseSet from the network database.Uses of LeaseSet in net.i2p.router.client
Methods in net.i2p.router.client that return LeaseSetModifier and TypeMethodDescriptionClientConnectionRunner.getLeaseSet(Hash h) Currently allocated leaseSet.LeaseRequestState.getRequested()The lease set that is being requested.Methods in net.i2p.router.client with parameters of type LeaseSetModifier and TypeMethodDescription(package private) voidClientConnectionRunner.leaseSetCreated(LeaseSet ls) Called after a new leaseSet is granted by the client and the NetworkDb has been updated.(package private) voidClientConnectionRunner.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.voidClientManager.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.voidClientManager.requestLeaseSet(Hash dest, LeaseSet ls) Request that a particular client authorize the Leases contained in the LeaseSet.voidClientManagerFacadeImpl.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.voidClientManagerFacadeImpl.requestLeaseSet(Hash dest, LeaseSet set) Request that a particular client authorize the Leases contained in the LeaseSet.Constructors in net.i2p.router.client with parameters of type LeaseSetModifierConstructorDescriptionLeaseRequestState(Job onGranted, Job onFailed, long currentEarliestLeastDate, long expiration, LeaseSet requested) Create a new LeaseRequestState.Uses of LeaseSet in net.i2p.router.dummy
Methods in net.i2p.router.dummy that return LeaseSetModifier and TypeMethodDescriptionDummyNetworkDatabaseFacade.lookupLeaseSetLocally(Hash key) Store a key locally.Methods in net.i2p.router.dummy with parameters of type LeaseSetModifier and TypeMethodDescriptionvoidPublish a key to the network.voidDummyClientManagerFacade.requestLeaseSet(Destination dest, LeaseSet set, long timeout, Job onCreateJob, Job onFailedJob) voidDummyClientManagerFacade.requestLeaseSet(Hash dest, LeaseSet set) Store a key locally.voidRemove a key from publication.Uses of LeaseSet in net.i2p.router.message
Fields in net.i2p.router.message with type parameters of type LeaseSetModifier and TypeFieldDescription(package private) final ConcurrentHashMap<OutboundCache.HashPair, LeaseSet> OutboundCache.leaseSetCacheLeaseSet cache keyed by source-destination pairs.final ConcurrentHashMap<Hash, LeaseSet> OutboundCache.multihomedCacheCache for LeaseSets associated with multihomed routers or hosted destinations.Methods in net.i2p.router.message with parameters of type LeaseSetModifier and TypeMethodDescription(package private) static GarlicMessageOutboundClientMessageJobHelper.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.Uses of LeaseSet in net.i2p.router.networkdb.kademlia
Methods in net.i2p.router.networkdb.kademlia that return LeaseSetModifier and TypeMethodDescriptionSearchState.getBestInitialLeaseSet()LeaseSet with the newest lease date among the initial responses.SearchState.getNewestLeaseSet()LeaseSet with the newest lease date among the responses.KademliaNetworkDatabaseFacade.lookupLeaseSetLocally(Hash key) LeaseSet stored locally.Store the LeaseSet without persisting it to disk.Store the leaseSet.Methods in net.i2p.router.networkdb.kademlia that return types with arguments of type LeaseSetModifier and TypeMethodDescriptionKademliaNetworkDatabaseFacade.getClientLeases()LeaseSets published by this router's clients.KademliaNetworkDatabaseFacade.getFloodfillLeases()LeaseSets stored in the floodfill database.KademliaNetworkDatabaseFacade.getLeases()KademliaNetworkDatabaseFacade.getPublishedLeases()LeaseSets published to the network.KademliaNetworkDatabaseFacade.getUnpublishedLeases()LeaseSets not published to the network.Methods in net.i2p.router.networkdb.kademlia with parameters of type LeaseSetModifier and TypeMethodDescriptionvoidSearchState.addInitialLeaseSetResponse(Hash peer, LeaseSet ls) Record the peer's LeaseSet response from the initial phase.voidSearchState.addLeaseSetResponse(Hash peer, LeaseSet ls) Record the peer's LeaseSet response.static booleanUtility to determine if a is newer than b.voidPublishes a local LeaseSet to the network: stores it in this facade and, for a client facade, also in the floodfill facade, then schedules republishing.(package private) static booleanRepublishLeaseSetJob.sameLeaseTunnels(LeaseSet stored, LeaseSet fresh) Whether two lease sets advertise exactly the same tunnels.(package private) static booleanKademliaNetworkDatabaseFacade.shouldAcceptLeaseSet(LeaseSet stored, LeaseSet incoming, long now) Determine whether an incoming LeaseSet may replace the currently stored copy.booleanSearchState.shouldUpdateStored(LeaseSet ls) Whether the given LeaseSet is newer than the stored one.Store the LeaseSet without persisting it to disk.Store the leaseSet.voidValidates whether the given LeaseSet is acceptable as valid and current based on current known parameters.Uses of LeaseSet in net.i2p.router.tunnel.pool
Methods in net.i2p.router.tunnel.pool that return LeaseSetModifier and TypeMethodDescriptionTunnelPool.getInboundTunnelsAsLeaseSet()Build and return current LeaseSet from our tunnels.protected LeaseSetAliasedTunnelPool.locked_buildNewLeaseSet()protected LeaseSetTunnelPool.locked_buildNewLeaseSet()Build a leaseSet with the required tunnels that aren't about to expire.Uses of LeaseSet in net.i2p.router.web.helpers
Classes in net.i2p.router.web.helpers that implement interfaces with type arguments of type LeaseSetModifier and TypeClassDescription(package private) static classComparator for LeaseSets, used in the leaseset listing.(package private) static classComparator for LeaseSets sorted by hash distance from local router.Methods in net.i2p.router.web.helpers with parameters of type LeaseSet