Packages that use EstablishmentManager.Token
Package
Description
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Uses of EstablishmentManager.Token in net.i2p.router.transport.udp
Subclasses with type arguments of type EstablishmentManager.Token in net.i2p.router.transport.udpModifier and TypeClassDescriptionprivate classFor inbound tokens only, to record eviction time in a stat, for use in setting expiration times.Classes in net.i2p.router.transport.udp that implement interfaces with type arguments of type EstablishmentManager.TokenModifier and TypeClassDescriptionprivate static classSoonest expiration first.Fields in net.i2p.router.transport.udp declared as EstablishmentManager.TokenModifier and TypeFieldDescriptionprivate final EstablishmentManager.TokenSSU2Payload.NewTokenBlock.tokThe new token being sent.Fields in net.i2p.router.transport.udp with type parameters of type EstablishmentManager.TokenModifier and TypeFieldDescriptionprivate final Map<RemoteHostId, EstablishmentManager.Token> EstablishmentManager._inboundTokensTokens issued to hosts that contacted us.private final Map<RemoteHostId, EstablishmentManager.Token> EstablishmentManager._outboundTokensTokens we hold for hosts we contact.Methods in net.i2p.router.transport.udp that return EstablishmentManager.TokenModifier and TypeMethodDescriptionEstablishmentManager.getInboundToken(RemoteHostId peer) Token that can be used later for the peer to connect to us.EstablishmentManager.getInboundToken(RemoteHostId peer, long expiration) Token that can be used later for the peer to connect to us.InboundEstablishState2.getNextToken()Look up the next inbound establishment token for this session's peer.OutboundEstablishState2.getNextToken()Get the next token for this connection.Methods in net.i2p.router.transport.udp with parameters of type EstablishmentManager.TokenModifier and TypeMethodDescriptionprivate voidPacketBuilder2.encryptSessionConfirmed(UDPPacket packet, HandshakeState state, int mtu, int numFragments, int addPadding, boolean isIPv6, byte[] hdrKey1, byte[] hdrKey2, SSU2Payload.RIBlock riblock, EstablishmentManager.Token token) If numFragments larger than 1, we do NOT encrypt the header here, that's caller's responsibility.private voidPacketBuilder2.encryptSessionCreated(UDPPacket packet, HandshakeState state, int mtu, byte[] hdrKey1, byte[] hdrKey2, long relayTag, EstablishmentManager.Token token, byte[] ip, int port, int version) Encrypt and write out message 2 of the handshake, the SessionCreated.Method parameters in net.i2p.router.transport.udp with type arguments of type EstablishmentManager.TokenModifier and TypeMethodDescriptionintEstablishmentManager.TokenComparator.compare(Map.Entry<RemoteHostId, EstablishmentManager.Token> l, Map.Entry<RemoteHostId, EstablishmentManager.Token> r) Compare the two entries by expiration, soonest first.protected booleanEstablishmentManager.InboundTokens.removeEldestEntry(Map.Entry<RemoteHostId, EstablishmentManager.Token> eldest) Remove the eldest entry, recording its eviction time.Constructors in net.i2p.router.transport.udp with parameters of type EstablishmentManager.TokenModifierConstructorDescriptionWrap a session token as a block.