## Uses of Class
net.i2p.data.router.RouterIdentity

- Packages that use RouterIdentity
  Package | Description
  --- | ---
  net.i2p.data.router | Router-specific data structures and identity management classes for I2P.
  net.i2p.router | The I2P router application handles I2P network communication.
  net.i2p.router.message | Garlic message creation, parsing, and source routing for I2P communications.
  net.i2p.router.networkdb | Network database management and coordination for the I2P distributed hash table.
  net.i2p.router.networkdb.kademlia | Kademlia DHT implementation and floodfill router functionality for I2P.
  net.i2p.router.startup | The I2P startup package loads configuration when I2P is started.
  net.i2p.router.transport | Transport layer implementations and management for I2P network communication.
  net.i2p.router.transport.ntcp | The NTCP (New TCP) transport for I2P, allowing I2P messages to be passed over TCP connections.
  net.i2p.router.transport.udp | The UDP transport (also known as 'SSU' or Secure Semi-reliable UDP transport) for I2P, allowing I2P messages to be passed over UDP connections.

- - ### Uses of RouterIdentity in net.i2p.data.router

    Methods in net.i2p.data.router that return RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `RouterIdentity` | RouterInfo.`getIdentity()` Retrieve the identity of the router represented
    `RouterIdentity` | RouterPrivateKeyFile.`getRouterIdentity()` Read it in from the file.

    Methods in net.i2p.data.router with parameters of type RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `void` | RouterInfo.`setIdentity(RouterIdentity ident)` Configure the identity of the router represented

  - ### Uses of RouterIdentity in net.i2p.router

    Methods in net.i2p.router that return RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `RouterIdentity` | Router.`getRouterIdentity()` Our current router identity.

    Methods in net.i2p.router with parameters of type RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `int` | InNetMessagePool.`add(I2NPMessage messageBody, RouterIdentity fromRouter, Hash fromRouterHash)` Adds a new inbound message to be processed.
    `int` | InNetMessagePool.`add(I2NPMessage messageBody, RouterIdentity fromRouter, Hash fromRouterHash, long msgIDBloomXor)` Adds a new inbound message with optional bloom filter XOR id.
    `Job` | HandlerJobBuilder.`createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash)` Create a new job to handle the received message.

  - ### Uses of RouterIdentity in net.i2p.router.message

    Methods in net.i2p.router.message with parameters of type RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `Job` | GarlicMessageHandler.`createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash)`

    Constructors in net.i2p.router.message with parameters of type RouterIdentity
    Constructor and Description
    `HandleGarlicMessageJob(RouterContext context, GarlicMessage msg, RouterIdentity from, Hash fromHash, long msgIDBloomXorLocal, long msgIDBloomXorRouter, long msgIDBloomXorTunnel)` Constructs a job to handle an inbound garlic message.

  - ### Uses of RouterIdentity in net.i2p.router.networkdb

    Constructors in net.i2p.router.networkdb with parameters of type RouterIdentity
    Constructor and Description
    `HandleDatabaseLookupMessageJob(RouterContext ctx, DatabaseLookupMessage receivedMessage, RouterIdentity from, Hash fromHash, long msgIDBloomXor)`

  - ### Uses of RouterIdentity in net.i2p.router.networkdb.kademlia

    Methods in net.i2p.router.networkdb.kademlia with parameters of type RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `Job` | FloodfillDatabaseStoreMessageHandler.`createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash)`
    `Job` | FloodfillDatabaseLookupMessageHandler.`createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash)` Creates a job to handle an incoming DatabaseLookupMessage, or returns null if the lookup should be dropped.

    Constructors in net.i2p.router.networkdb.kademlia with parameters of type RouterIdentity
    Constructor and Description
    `HandleFloodfillDatabaseLookupMessageJob(RouterContext ctx, DatabaseLookupMessage receivedMessage, RouterIdentity from, Hash fromHash, long msgIDBloomXor)`
    `HandleFloodfillDatabaseStoreMessageJob(RouterContext ctx, DatabaseStoreMessage receivedMessage, RouterIdentity from, Hash fromHash, FloodfillNetworkDatabaseFacade facade, long msgIDBloomXor)`

  - ### Uses of RouterIdentity in net.i2p.router.startup

    Fields in net.i2p.router.startup declared as RouterIdentity
    Modifier and Type | Field and Description
    --- | ---
    `RouterIdentity` | LoadRouterInfoJob.KeyData.`routerIdentity`

    Constructors in net.i2p.router.startup with parameters of type RouterIdentity
    Constructor and Description
    `KeyData(RouterIdentity ri, PrivateKey pk, SigningPrivateKey spk)`

  - ### Uses of RouterIdentity in net.i2p.router.transport

    Methods in net.i2p.router.transport with parameters of type RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `void` | TransportEventListener.`messageReceived(I2NPMessage message, RouterIdentity fromRouter, Hash fromRouterHash)` Message received
    `void` | TransportManager.`messageReceived(I2NPMessage message, RouterIdentity fromRouter, Hash fromRouterHash)` Handle incoming I2NP message from a peer.
    `void` | TransportImpl.`messageReceived(I2NPMessage inMsg, RouterIdentity remoteIdent, Hash remoteIdentHash, long msToReceive, int bytesReceived)` Message received from the I2NPMessageReader - send it to the listener

  - ### Uses of RouterIdentity in net.i2p.router.transport.ntcp

    Methods in net.i2p.router.transport.ntcp that return RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `RouterIdentity` | NTCPConnection.`getRemotePeer()` Valid for outbound; valid for inbound after handshake

    Methods in net.i2p.router.transport.ntcp with parameters of type RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `void` | NTCPConnection.`setRemotePeer(RouterIdentity ident)` Valid for outbound; valid for inbound after handshake

    Constructors in net.i2p.router.transport.ntcp with parameters of type RouterIdentity
    Constructor and Description
    `NTCPConnection(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 RouterIdentity
    Modifier and Type | Field and Description
    --- | ---
    `protected RouterIdentity` | InboundEstablishState.`_receivedConfirmedIdentity`
    `protected RouterIdentity` | InboundEstablishState.`_receivedUnconfirmedIdentity`
    `protected RouterIdentity` | OutboundEstablishState.`_remotePeer`

    Methods in net.i2p.router.transport.udp that return RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `RouterIdentity` | InboundEstablishState.`getConfirmedIdentity()` Who is Alice (null if forged/unknown) Note that this isn't really confirmed - see below.
    `RouterIdentity` | OutboundEstablishState.`getRemoteIdentity()`

    Methods in net.i2p.router.transport.udp with parameters of type RouterIdentity
    Modifier and Type | Method and Description
    --- | ---
    `void` | UDPTransport.`messageReceived(I2NPMessage inMsg, RouterIdentity remoteIdent, Hash remoteIdentHash, long msToReceive, int bytesReceived)`

    Constructors in net.i2p.router.transport.udp with parameters of type RouterIdentity
    Constructor and Description
    `OutboundEstablishState(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)` Prepare to start a new handshake with the given peer.