Package | Description |
---|---|
net.i2p.client.datagram |
Provides a standard way for reading and writing messages transferred over I2P
so that the recipient has an authenticated mechanism to reply to it.
|
net.i2p.crypto |
These classes provide a number of low-level cryptographic routines.
|
net.i2p.data |
These classes define the common data structures used by the various
I2P protocols.
|
net.i2p.data.i2cp |
The Invisible Internet Client Protocol (I2CP) allows applications simplified access to
the I2P network without requiring them to deal with the issues involved with the
Invisible Internet Network Protocol (I2NP).
|
net.i2p.data.i2np |
The Invisible Internet Network Protocol (I2NP) is only a part of how an
application can send messages over the network.
|
net.i2p.i2ptunnel | |
net.i2p.router |
The I2P router application handles the I2P network communication.
|
net.i2p.sam |
Modifier and Type | Method and Description |
---|---|
void |
I2PDatagramDissector.loadI2PDatagram(byte[] dgram)
Load an I2P repliable datagram into the dissector.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
ElGamalAESEngine.decrypt(byte[] data,
PrivateKey targetPrivateKey)
Deprecated.
specify the key manager!
|
byte[] |
ElGamalAESEngine.decrypt(byte[] data,
PrivateKey targetPrivateKey,
SessionKeyManager keyManager)
Decrypt the message using the given private key
and using tags from the specified key manager.
|
(package private) byte[] |
ElGamalAESEngine.decryptAESBlock(byte[] encrypted,
int offset,
int encryptedLen,
SessionKey key,
byte[] iv,
byte[] sentTag,
Set foundTags,
SessionKey foundKey) |
void |
SHA1Hash.readBytes(InputStream in) |
Modifier and Type | Method and Description |
---|---|
static Certificate |
Certificate.create(InputStream in)
If null cert, return immutable static instance, else create new
|
Destination |
PrivateKeyFile.createIfAbsent()
Also reads in the file to get the privKey and signingPrivKey,
which aren't available from I2PClient.
|
void |
DataStructure.fromBase64(String data)
Load the structure from the base 64 encoded data provided
|
void |
DataStructureImpl.fromBase64(String data) |
void |
SimpleDataStructure.fromBase64(String data)
Sets the data.
|
void |
DataStructure.fromByteArray(byte[] data) |
void |
DataStructureImpl.fromByteArray(byte[] data) |
void |
SimpleDataStructure.fromByteArray(byte[] data)
Overridden for efficiency.
|
void |
DateAndFlags.fromByteArray(byte[] data)
Overridden for efficiency.
|
void |
TunnelId.fromByteArray(byte[] data)
Overridden for efficiency.
|
static Date |
DataHelper.fromDate(byte[] src,
int offset) |
static int |
DataHelper.fromProperties(byte[] source,
int offset,
Properties target)
Reads the props from the byte array and puts them in the Properties target
See readProperties() for the format.
|
protected abstract byte[] |
DatabaseEntry.getBytes()
Returns the raw payload data, excluding the signature, to be signed by sign().
|
protected byte[] |
RouterInfo.getBytes()
Write out the raw payload of the routerInfo, excluding the signature.
|
Destination |
PrivateKeyFile.getDestination()
Also sets the local privKey and signingPrivKey
|
static Boolean |
DataHelper.readBoolean(InputStream in)
Deprecated.
unused
|
int |
Certificate.readBytes(byte[] source,
int offset) |
int |
Destination.readBytes(byte[] source,
int offset)
deprecated, used only by Packet.java in streaming
|
void |
DataStructure.readBytes(InputStream in)
Load up the current object with data from the given stream.
|
void |
Payload.readBytes(InputStream in) |
void |
SimpleDataStructure.readBytes(InputStream in)
Sets the data.
|
void |
Certificate.readBytes(InputStream in) |
void |
DateAndFlags.readBytes(InputStream in) |
void |
Address.readBytes(InputStream in) |
void |
TunnelId.readBytes(InputStream in) |
void |
RouterAddress.readBytes(InputStream in) |
void |
Hash.readBytes(InputStream in) |
void |
KeysAndCert.readBytes(InputStream in) |
void |
LeaseSet.readBytes(InputStream in)
This does NOT validate the signature
|
void |
RouterInfo.readBytes(InputStream in)
This does NOT validate the signature
|
void |
Lease.readBytes(InputStream in) |
static Date |
DataHelper.readDate(InputStream in)
Read in a date from the stream as specified by the I2P data structure spec.
|
static long |
DataHelper.readLong(InputStream rawStream,
int numBytes)
Read the stream for an integer as defined by the I2P data structure specification.
|
static Properties |
DataHelper.readProperties(InputStream rawStream)
Read a mapping from the stream, as defined by the I2P data structure spec,
and store it into a Properties object.
|
static String |
DataHelper.readString(InputStream in)
Read in a string from the stream as specified by the I2P data structure spec.
|
void |
DatabaseEntry.sign(SigningPrivateKey key)
Sign the structure using the supplied signing key
|
static int |
DataHelper.toProperties(byte[] target,
int offset,
Properties props)
Deprecated.
|
static byte[] |
DataHelper.toProperties(Properties opts)
Writes the props to returned byte array, not sorted
(unless the opts param is an OrderedProperties)
Strings will be UTF-8 encoded in the byte array.
|
void |
PrivateKeyFile.write()
Copied from I2PClientImpl.createDestination()
|
static void |
DataHelper.writeBoolean(OutputStream out,
Boolean bool)
Deprecated.
unused
|
void |
DataStructure.writeBytes(OutputStream out)
Write out the data structure to the stream, using the format defined in the
I2P data structure specification.
|
void |
Payload.writeBytes(OutputStream out) |
void |
SimpleDataStructure.writeBytes(OutputStream out) |
void |
Certificate.writeBytes(OutputStream out) |
void |
DateAndFlags.writeBytes(OutputStream out) |
void |
Address.writeBytes(OutputStream out) |
void |
TunnelId.writeBytes(OutputStream out) |
void |
RouterAddress.writeBytes(OutputStream out) |
void |
KeysAndCert.writeBytes(OutputStream out) |
void |
LeaseSet.writeBytes(OutputStream out)
This does NOT validate the signature
|
void |
RouterInfo.writeBytes(OutputStream out)
This does NOT validate the signature
|
void |
Lease.writeBytes(OutputStream out) |
static void |
DataHelper.writeDate(OutputStream out,
Date date)
Write out a date to the stream as specified by the I2P data structure spec.
|
static void |
DataHelper.writeLong(OutputStream rawStream,
int numBytes,
long value)
Write an integer as defined by the I2P data structure specification to the stream.
|
static void |
DataHelper.writeProperties(OutputStream rawStream,
Properties props)
Write a mapping to the stream, as defined by the I2P data structure spec,
and store it into a Properties object.
|
static void |
DataHelper.writeProperties(OutputStream rawStream,
Properties props,
boolean utf8)
Writes the props to the stream, sorted by property name.
|
static void |
DataHelper.writeProperties(OutputStream rawStream,
Properties props,
boolean utf8,
boolean sort)
Writes the props to the stream, sorted by property name if sort == true or
if props is an OrderedProperties.
|
static void |
DataHelper.writeString(OutputStream out,
String string)
Write out a string to the stream as specified by the I2P data structure spec.
|
Constructor and Description |
---|
Destination(String s)
alternative constructor which takes a base64 string representation
|
PrivateKey(String base64Data)
constructs from base64
|
PublicKey(String base64Data)
constructs from base64
|
SigningPrivateKey(String base64Data)
constructs from base64
|
SigningPublicKey(String base64Data)
constructs from base64
|
VerifiedDestination(Destination d)
create from an existing Dest
|
VerifiedDestination(String s)
alternative constructor which takes a base64 string representation
|
Modifier and Type | Method and Description |
---|---|
void |
SessionConfig.readBytes(InputStream rawConfig) |
void |
I2CPMessageImpl.readBytes(InputStream in) |
void |
MessageId.readBytes(InputStream in) |
void |
SessionId.readBytes(InputStream in) |
void |
AbuseSeverity.readBytes(InputStream in) |
void |
AbuseReason.readBytes(InputStream in) |
void |
SessionConfig.signSessionConfig(SigningPrivateKey signingKey)
Sign the structure using the supplied private key
|
void |
SessionConfig.writeBytes(OutputStream out) |
void |
I2CPMessageImpl.writeBytes(OutputStream out) |
void |
MessageId.writeBytes(OutputStream out) |
void |
SessionId.writeBytes(OutputStream out) |
void |
AbuseSeverity.writeBytes(OutputStream out) |
void |
AbuseReason.writeBytes(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
int |
GarlicClove.readBytes(byte[] source,
int offset) |
int |
DeliveryInstructions.readBytes(byte[] data,
int offset) |
void |
I2NPMessageImpl.readBytes(InputStream in)
Deprecated.
Unused, why would you do this
|
void |
GarlicClove.readBytes(InputStream in) |
void |
DeliveryInstructions.readBytes(InputStream in) |
void |
I2NPMessageImpl.writeBytes(OutputStream out) |
void |
GarlicClove.writeBytes(OutputStream out) |
void |
DeliveryInstructions.writeBytes(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
static Destination |
I2PTunnel.destFromName(String name)
Deprecated.
Don't use i2ptunnel for lookup! Use I2PAppContext.getGlobalContext().namingService().lookup(name) from i2p.jar
|
Modifier and Type | Method and Description |
---|---|
void |
LeaseSetKeys.readBytes(InputStream in) |
void |
LeaseSetKeys.writeBytes(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
boolean |
SAMStreamSession.connect(int id,
String dest,
Properties props)
Connect the SAM STREAM session to the specified Destination
|
boolean |
SAMv2StreamSession.connect(int id,
String dest,
Properties props)
Connect the SAM STREAM session to the specified Destination
|
void |
SAMv3StreamSession.connect(SAMv3Handler handler,
String dest,
Properties props)
Connect the SAM STREAM session to the specified Destination
|
static Destination |
SAMUtils.getDest(String s)
Resolve the destination from a key or a hostname
|
(package private) SAMv3DatagramSession |
SAMv3Handler.newSAMDatagramSession(String login) |
(package private) SAMv3RawSession |
SAMv3Handler.newSAMRawSession(String login) |
(package private) SAMv3StreamSession |
SAMv3Handler.newSAMStreamSession(String login) |
(package private) SAMStreamSession |
SAMv2Handler.newSAMStreamSession(String destKeystream,
String direction,
Properties props) |
(package private) SAMStreamSession |
SAMv1Handler.newSAMStreamSession(String destKeystream,
String direction,
Properties props) |
boolean |
SAMDatagramSession.sendBytes(String dest,
byte[] data)
Send bytes through a SAM DATAGRAM session.
|
boolean |
SAMRawSession.sendBytes(String dest,
byte[] data)
Send bytes through a SAM RAW session.
|
boolean |
SAMv3Handler.Session.sendBytes(String dest,
byte[] data) |
abstract boolean |
SAMMessageSession.sendBytes(String dest,
byte[] data)
Send bytes through a SAM message-based session.
|
boolean |
SAMv3StreamSession.sendBytes(String s,
byte[] b) |
protected boolean |
SAMMessageSession.sendBytesThroughMessageSession(String dest,
byte[] data)
Actually send bytes through the SAM message-based session I2PSession
(er...).
|
Constructor and Description |
---|
SAMDatagramSession(InputStream destStream,
Properties props,
SAMDatagramReceiver recv)
Create a new SAM DATAGRAM session.
|
SAMDatagramSession(String dest,
Properties props,
SAMDatagramReceiver recv)
Create a new SAM DATAGRAM session.
|
SAMMessageSession(InputStream destStream,
Properties props)
Initialize a new SAM message-based session.
|
SAMMessageSession(String dest,
Properties props)
Initialize a new SAM message-based session.
|
SAMRawSession(InputStream destStream,
Properties props,
SAMRawReceiver recv)
Create a new SAM RAW session.
|
SAMRawSession(String dest,
Properties props,
SAMRawReceiver recv)
Create a new SAM RAW session.
|
SAMStreamSession(InputStream destStream,
String dir,
Properties props,
SAMStreamReceiver recv)
Create a new SAM STREAM session.
|
SAMStreamSession(String dest,
String dir,
Properties props,
SAMStreamReceiver recv)
Create a new SAM STREAM session.
|
SAMv2StreamSession(InputStream destStream,
String dir,
Properties props,
SAMStreamReceiver recv)
Create a new SAM STREAM session.
|
SAMv2StreamSession(String dest,
String dir,
Properties props,
SAMStreamReceiver recv)
Create a new SAM STREAM session.
|
SAMv3DatagramSession(String nick)
build a DatagramSession according to informations registered
with the given nickname
|
SAMv3RawSession(String nick)
Build a Raw Datagram Session according to information
registered with the given nickname
|
SAMv3StreamSession(String login)
Create a new SAM STREAM session, according to information
registered with the given nickname
|