These classes define the common data structures used by the various I2P protocols.
Interface Summary Interface Description DataStructureDefines the class as a standard object with particular bit representation, exposing methods to read and write that representation.
Class Summary Class Description Base32Encodes and decodes to and from Base32 notation. Base64Encodes and decodes to and from Base64 notation. BlindDataCache data for Blinding EdDSA keys. ByteArrayWrap up an array of bytes so that they can be compared and placed in hashes, maps, and the like. CertificateDefines a certificate that can be attached to various I2P structures, such as RouterIdentity and Destination, allowing routers and clients to help manage denial of service attacks and the network utilization. DatabaseEntryBase implementation of common methods for the two data structures that are stored in the netDb, i.e. DataHelperDefines some simple IO routines for dealing with marshalling data structures DataStructureImplBase implementation of all data structures DateAndFlagsA six-byte Date and 2 bytes of flags, since a Date won't encroach on the top two bytes until the year 10889. DestinationDefines an end point in the I2P network. EmptyPropertiesImmutable OrderedProperties, to reduce object churn in LS2 where it's expected to be empty. EncryptedLeaseSetUse getSigningKey() / setSigningKey() (revocation key in super) for the blinded key. HashDefines the hash as defined by the I2P data structure spec. KeyCertificateThis certificate type gets its own class because it's going to be used a lot. KeysAndCertKeysAndCert has a public key, a signing key, and a certificate. LeaseDefines the proof that a particular router / tunnel is allowed to receive messages for a particular Destination during some period of time. Lease2Like Lease but with 4-byte timestamps. LeaseSetDefines the set of leases a destination currently has. LeaseSet2PRELIMINARY - Subject to change - see proposal 123 MetaLeaseLike a Lease, but points to another LeaseSet. MetaLeaseSetPRELIMINARY - Subject to change - see proposal 123 PayloadDefines the actual payload of a message being delivered, including the standard encryption wrapping, as defined by the I2P data structure spec. PrivateKeyDefines the PrivateKey as defined by the I2P data structure spec. PrivateKeyFileThis helper class reads and writes files in the same "eepPriv.dat" format used by the client code. PublicKeyDefines the PublicKey as defined by the I2P data structure spec. RoutingKeyGeneratorComponent to manage the munging of hashes into routing keys - given a hash, perform some consistent transformation against it and return the result. SDSCache<V extends SimpleDataStructure>A least recently used cache with a max size, for SimpleDataStructures. SessionKeyDefines the SessionKey as defined by the I2P data structure spec. SessionTag32 bytes, usually of random data. SignatureDefines the signature as defined by the I2P data structure spec. SigningPrivateKeyDefines the SigningPrivateKey as defined by the I2P data structure spec. SigningPublicKeyDefines the SigningPublicKey as defined by the I2P data structure spec. SimpleDataStructureA SimpleDataStructure contains only a single fixed-length byte array. TunnelIdDefines the tunnel ID that messages are passed through on a set of routers. VerifiedDestinationExtend Destination with methods to verify its Certificate.
Exception Summary Exception Description DataFormatExceptionThrown when the data was not available to read or write a DataStructure