Packages that use RouterIdentity
Package
Description
Router-specific data structures: RouterInfo and RouterIdentity with their transport addresses and capabilities, router key generation, and the optionally password-protected router private key file.
The I2P router application handles I2P network communication.
Garlic message creation, parsing and handling, and the outbound message jobs: one-shot sends, source routing and delivery status handling.
Network database message handling shared by all facades: database lookup jobs and local RouterInfo publication.
The Kademlia distributed hash table (DHT) network database: lookup, store and explore jobs, the data store, the floodfill variants, and lookup throttling.
The I2P startup package loads configuration when I2P is started.
Transport framework: the transport lifecycle and pool management, connection handling and bandwidth throttling for the transports (NTCP2 over TCP, SSU over UDP) that carry I2P messages between routers, plus NAT traversal via UPnP and GeoIP country lookups.
NTCP2, the TCP transport: framed, ratchet-encrypted and mutually authenticated connections between routers.
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Uses of RouterIdentity in net.i2p.data.router
Fields in net.i2p.data.router declared as RouterIdentityModifier and TypeFieldDescriptionprivate RouterIdentityRouterInfo._identityThis router's identity (router key + certificate).Methods in net.i2p.data.router that return RouterIdentityModifier and TypeMethodDescriptionRouterInfo.getIdentity()Retrieve the identity of the router represented.RouterPrivateKeyFile.getRouterIdentity()Read it in from the file.Methods in net.i2p.data.router with parameters of type RouterIdentityModifier and TypeMethodDescriptionvoidRouterInfo.setIdentity(RouterIdentity ident) Configure the identity of the router represented.Uses of RouterIdentity in net.i2p.router
Fields in net.i2p.router declared as RouterIdentityMethods in net.i2p.router that return RouterIdentityMethods in net.i2p.router with parameters of type RouterIdentityModifier and TypeMethodDescriptionintInNetMessagePool.add(I2NPMessage messageBody, RouterIdentity fromRouter, Hash fromRouterHash) Adds a new inbound message to be processed.intInNetMessagePool.add(I2NPMessage messageBody, RouterIdentity fromRouter, Hash fromRouterHash, long msgIDBloomXor) Adds a new inbound message with optional bloom filter XOR id.HandlerJobBuilder.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) Create a new job to handle the received message.private voidInNetMessagePool.handleDroppedUnmatchedMessage(I2NPMessage messageBody, RouterIdentity fromRouter, Hash fromRouterHash, boolean doHistory) Handles dropping messages that are not matched or handled.private voidInNetMessagePool.handleInvalidMessage(I2NPMessage messageBody, String invalidReason, RouterIdentity fromRouter, Hash fromRouterHash, boolean doHistory, long msgIDBloomXor) Handles invalid or duplicate messages by logging, statistics updates, and history recording.private booleanInNetMessagePool.processDatabaseStoreMessage(I2NPMessage messageBody, RouterIdentity fromRouter, Hash fromRouterHash, boolean doHistory) Processes DatabaseStoreMessage types by running or queueing corresponding jobs.Uses of RouterIdentity in net.i2p.router.message
Methods in net.i2p.router.message with parameters of type RouterIdentityModifier and TypeMethodDescriptionGarlicMessageHandler.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) Create and return a job to handle this message.Constructors in net.i2p.router.message with parameters of type RouterIdentityModifierConstructorDescriptionHandleGarlicMessageJob(RouterContext context, GarlicMessage msg, RouterIdentity from, Hash fromHash, long msgIDBloomXorLocal, long msgIDBloomXorRouter, long msgIDBloomXorTunnel) Job to handle an inbound garlic message received outside of a tunnel.Uses of RouterIdentity in net.i2p.router.networkdb
Constructors in net.i2p.router.networkdb with parameters of type RouterIdentityModifierConstructorDescriptionHandleDatabaseLookupMessageJob(RouterContext ctx, DatabaseLookupMessage receivedMessage, RouterIdentity _from, Hash _fromHash, long msgIDBloomXor) Creates a new HandleDatabaseLookupMessageJob.Uses of RouterIdentity in net.i2p.router.networkdb.kademlia
Fields in net.i2p.router.networkdb.kademlia declared as RouterIdentityModifier and TypeFieldDescriptionprivate final RouterIdentityHandleFloodfillDatabaseStoreMessageJob._fromThe sender's router identity.Methods in net.i2p.router.networkdb.kademlia with parameters of type RouterIdentityModifier and TypeMethodDescriptionFloodfillDatabaseLookupMessageHandler.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) Creates a job to handle an incoming DatabaseLookupMessage, or returns null if the lookup should be dropped.FloodfillDatabaseStoreMessageHandler.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) Constructors in net.i2p.router.networkdb.kademlia with parameters of type RouterIdentityModifierConstructorDescriptionHandleFloodfillDatabaseLookupMessageJob(RouterContext ctx, DatabaseLookupMessage receivedMessage, RouterIdentity from, Hash fromHash, long msgIDBloomXor) Creates a new job to handle a floodfill database lookup message.HandleFloodfillDatabaseStoreMessageJob(RouterContext ctx, DatabaseStoreMessage receivedMessage, RouterIdentity from, Hash fromHash, FloodfillNetworkDatabaseFacade facade, long msgIDBloomXor) Handle an incoming floodfill DatabaseStoreMessage.Uses of RouterIdentity in net.i2p.router.startup
Fields in net.i2p.router.startup declared as RouterIdentityModifier and TypeFieldDescriptionfinal RouterIdentityLoadRouterInfoJob.KeyData.routerIdentityRouter identity of this router.Constructors in net.i2p.router.startup with parameters of type RouterIdentityModifierConstructorDescriptionKeyData(RouterIdentity ri, PrivateKey pk, SigningPrivateKey spk) Pairs a router identity with the private keys that match it.Uses of RouterIdentity in net.i2p.router.transport
Methods in net.i2p.router.transport with parameters of type RouterIdentityModifier and TypeMethodDescriptionvoidTransportEventListener.messageReceived(I2NPMessage message, RouterIdentity fromRouter, Hash fromRouterHash) Message received.voidTransportImpl.messageReceived(I2NPMessage inMsg, RouterIdentity remoteIdent, Hash remoteIdentHash, long msToReceive, int bytesReceived) Message received from the I2NPMessageReader - send it to the listener.voidTransportManager.messageReceived(I2NPMessage message, RouterIdentity fromRouter, Hash fromRouterHash) Handle incoming I2NP message from a peer.Uses of RouterIdentity in net.i2p.router.transport.ntcp
Fields in net.i2p.router.transport.ntcp declared as RouterIdentityModifier and TypeFieldDescriptionprivate RouterIdentityInboundEstablishState._aliceIdentAlice's RouterIdentity, set afterInboundEstablishState.gotRI(RouterInfo, boolean, boolean)validation succeeds.private RouterIdentityNTCPConnection._remotePeerThe peer's identity, once established.Methods in net.i2p.router.transport.ntcp that return RouterIdentityModifier and TypeMethodDescriptionNTCPConnection.getRemotePeer()Valid for outbound; valid for inbound after handshake.Methods in net.i2p.router.transport.ntcp with parameters of type RouterIdentityModifier and TypeMethodDescriptionprivate voidEventPumper.recordFailedOutbound(RouterIdentity remote) Remember a failed outbound connect attempt for retry backoff, evicting the whole history when the cap is hit so the maps never grow past MAX_RETRY_MAP_SIZE.voidNTCPConnection.setRemotePeer(RouterIdentity ident) Valid for outbound; valid for inbound after handshake.Constructors in net.i2p.router.transport.ntcp with parameters of type RouterIdentityModifierConstructorDescriptionNTCPConnection(RouterContext ctx, NTCPTransport transport, RouterIdentity remotePeer, RouterAddress remAddr, int version) Create an outbound unconnected NTCP connection.Uses of RouterIdentity in net.i2p.router.transport.udp
Fields in net.i2p.router.transport.udp declared as RouterIdentityModifier and TypeFieldDescriptionprotected RouterIdentityInboundEstablishState._receivedConfirmedIdentityIdentity after successful signature verification.protected RouterIdentityInboundEstablishState._receivedUnconfirmedIdentityIdentity before signature verification.protected final RouterIdentityOutboundEstablishState._remotePeerRemote peer.Methods in net.i2p.router.transport.udp that return RouterIdentityModifier and TypeMethodDescriptionInboundEstablishState.getConfirmedIdentity()The confirmed identity of Alice (null if forged/unknown).OutboundEstablishState.getRemoteIdentity()Remote router identity.Methods in net.i2p.router.transport.udp with parameters of type RouterIdentityModifier and TypeMethodDescriptionprivate OutboundEstablishStateEstablishmentManager.createOutboundState(OutNetMessage msg, RemoteHostId to, RemoteHostId maybeTo, RouterIdentity toIdentity, boolean isIndirect, UDPAddress addr, RouterAddress ra, Hash toHash, String truncHash, String ipAddress, int maybePort, long now, boolean isBanned) Create a new outbound establish state for the peer, after verifying that its introducers, MTU, and introduction key are usable.voidUDPTransport.messageReceived(I2NPMessage inMsg, RouterIdentity remoteIdent, Hash remoteIdentHash, long msToReceive, int bytesReceived) Handle incoming message from transport layer.Constructors in net.i2p.router.transport.udp with parameters of type RouterIdentityModifierConstructorDescriptionprotectedOutboundEstablishState(RouterContext ctx, RemoteHostId claimedAddress, RemoteHostId remoteHostId, RouterIdentity remotePeer, boolean needIntroduction, SessionKey introKey, UDPAddress addr) For SSU2.OutboundEstablishState2(RouterContext ctx, UDPTransport transport, RemoteHostId claimedAddress, RemoteHostId remoteHostId, RouterIdentity remotePeer, boolean needIntroduction, SessionKey introKey, RouterAddress ra, UDPAddress addr, int version) Prepare to start a new handshake with the given peer.Uses of RouterIdentity in net.i2p.router.tunnel.pool
Fields in net.i2p.router.tunnel.pool declared as RouterIdentityModifier and TypeFieldDescription(package private) final RouterIdentityBuildHandler.BuildMessageState.fromThe sender's identity.Methods in net.i2p.router.tunnel.pool with parameters of type RouterIdentityModifier and TypeMethodDescriptionBuildHandler.TunnelBuildMessageHandlerJobBuilder.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) Either from or fromHash may be null, but both should be null only if we're to be a IBGW and it came from us as a OBEP.BuildHandler.TunnelBuildReplyMessageHandlerJobBuilder.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) Constructors in net.i2p.router.tunnel.pool with parameters of type RouterIdentityModifierConstructorDescriptionBuildMessageState(RouterContext ctx, I2NPMessage m, RouterIdentity f, Hash h) Either f or h may be null, but both should be null only if we're to be a IBGW and it came from us as a OBEP.