| Package | Description |
|---|---|
| net.i2p.client | Interfaces and factories for the base I2P SDK used to develop applications that communicate through I2P. |
| net.i2p.client.impl | Internal implementation of the I2P client SDK, providing the client
side of the I2CP protocol for applications communicating through I2P. |
| net.i2p.crypto | Core cryptographic primitives and algorithms used throughout I2P. |
| 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 I2P network without requiring them to deal with the issues involved with the Invisible Internet Network Protocol (I2NP). |
| net.i2p.i2ptunnel | Implementation of preconfigured tunnels for both clients and servers, with a comprehensive UI for tunnel management and configuration. |
| 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.web.helpers | Helpers and handlers for the router console user interface, with these classes supporting the webapp in routerconsole.war. |
| net.i2p.sam | The SAM (Simple Anonymous Messaging) client API. |
| Modifier and Type | Field and Description |
|---|---|
static SigType | I2PClient.DEFAULT_SIGTYPEDefault signature type. |
| Modifier and Type | Method and Description |
|---|---|
Destination | I2PClient.createDestination(OutputStream destKeyStream,
SigType type)Create a destination with the given signature type. |
Destination | I2PSimpleClient.createDestination(OutputStream destKeyStream,
SigType type)Deprecated. Don't do this |
| Modifier and Type | Method and Description |
|---|---|
Destination | I2PClientImpl.createDestination(OutputStream destKeyStream,
SigType type)Create a destination with the given signature type. |
| Modifier and Type | Method and Description |
|---|---|
static SigType | SigType.getByCode(int code)signature type by code. |
static SigType | Blinding.getDefaultBlindedType(SigType unblindedType)What's the default blinded type for a given unblinded type? |
SigType | SU3File.getSigType()This does not check the signature, but it will fail if the signer is unknown,
unless setVerifySignature(false) has been called. |
static SigType | SigType.parseSigType(String stype)Convenience for user apps |
static SigType | SigType.valueOf(String name)Returns the enum constant of this type with the specified name. |
static SigType[] | SigType.values()Returns an array containing the constants of this enum type, in
the order they are declared. |
| Modifier and Type | Method and Description |
|---|---|
static Object[] | KeyStoreUtil.createKeysAndCRL(File ks,
String ksPW,
String alias,
String cname,
Set<String> altNames,
String ou,
int validDays,
SigType type,
String keyPW)New way - Native Java, does not call out to keytool. |
static Object[] | KeyStoreUtil.createKeysAndCRL(File ks,
String ksPW,
String alias,
String cname,
String ou,
int validDays,
SigType type,
String keyPW)New way - Native Java, does not call out to keytool. |
static SigningPrivateKey | SigUtil.fromJavaKey(ECPrivateKey pk,
SigType type)Convert a Java ECPrivateKey to an I2P SigningPrivateKey of the given type. |
static SigningPublicKey | SigUtil.fromJavaKey(ECPublicKey pk,
SigType type)Convert a Java ECPublicKey to an I2P SigningPublicKey of the given type. |
static SigningPrivateKey | SigUtil.fromJavaKey(EdDSAPrivateKey pk,
SigType type)Convert a Java EdDSAPrivateKey to an I2P SigningPrivateKey. |
static SigningPublicKey | SigUtil.fromJavaKey(EdDSAPublicKey pk,
SigType type)Convert a Java EdDSAPublicKey to an I2P SigningPublicKey. |
static SigningPrivateKey | SigUtil.fromJavaKey(PrivateKey pk,
SigType type)Use if SigType is known. |
static SigningPublicKey | SigUtil.fromJavaKey(PublicKey pk,
SigType type)Use if SigType is known. |
static SigningPrivateKey | SigUtil.fromJavaKey(RSAPrivateKey pk,
SigType type)Convert a Java RSAPrivateKey to an I2P RSA private key of the given type. |
static SigningPublicKey | SigUtil.fromJavaKey(RSAPublicKey pk,
SigType type)Convert a Java RSAPublicKey to an I2P RSA public key of the given type. |
static Signature | SigUtil.fromJavaSig(byte[] asn,
SigType type)Convert a Java ASN.1 signature byte array to an I2P Signature. |
static Object[] | SelfSignedGenerator.generate(String cname,
Set<String> altNames,
String ou,
String o,
String l,
String st,
String c,
int validDays,
SigType type) |
static Object[] | SelfSignedGenerator.generate(String cname,
String ou,
String o,
String l,
String st,
String c,
int validDays,
SigType type) |
SimpleDataStructure[] | KeyGenerator.generateSigningKeys(SigType type)Generic signature type, supports DSA, RSA, ECDSA, EdDSA |
static SigType | Blinding.getDefaultBlindedType(SigType unblindedType)What's the default blinded type for a given unblinded type? |
PublicKey | DirKeyRing.getKey(String keyName,
String scope,
SigType type)Cert must be in the file (escaped keyName).crt,
and have a CN == keyName. |
PublicKey | KeyRing.getKey(String keyName,
String scope,
SigType type)Get a key. |
static PrivateKey | SigUtil.importJavaPrivateKey(File file,
SigType type)Import a Java PKCS8-encoded private key from a file. |
static PublicKey | SigUtil.importJavaPublicKey(File file,
SigType type)Import a Java X.509-encoded public key from a file. |
Signature | DSAEngine.sign(SimpleDataStructure hash,
PrivateKey privKey,
SigType type)Generic signature type. |
void | SU3File.write(File content,
int fileType,
int contentType,
String version,
String signer,
PrivateKey privkey,
SigType sigType)One-pass wrap and sign the content. |
| Modifier and Type | Method and Description |
|---|---|
SigType | BlindData.getBlindedSigType()Gets the type of the blinded signature. |
SigType | KeyCertificate.getSigType()Gets the signature type from the certificate. |
SigType | KeysAndCert.getSigType()Signature type from the certificate. |
SigType | SigningPrivateKey.getType()Gets the signature type of this private key. |
SigType | SigningPublicKey.getType()Gets the signature type of this public key. |
SigType | Signature.getType()Gets the signature type. |
| Modifier and Type | Method and Description |
|---|---|
Destination | PrivateKeyFile.createIfAbsent(SigType type)Create with the specified signature type if nonexistent. |
Certificate | PrivateKeyFile.setKeyCert(SigType type)Change cert type - caller must also call write(). |
| Constructor and Description |
|---|
BlindData(I2PAppContext ctx,
Destination dest,
SigType blindType,
String secret)Creates a new BlindData instance for the given destination. |
BlindData(I2PAppContext ctx,
Destination dest,
SigType blindType,
String secret,
int authType,
PrivateKey authKey)Creates a new BlindData instance for the given destination with authentication. |
BlindData(I2PAppContext ctx,
SigningPublicKey spk,
SigType blindType,
String secret)Creates a new BlindData instance for the given signing public key. |
BlindData(I2PAppContext ctx,
SigningPublicKey spk,
SigType blindType,
String secret,
int authType,
PrivateKey authKey)Creates a new BlindData instance for the given signing public key with authentication. |
KeyCertificate(SigType type)A KeyCertificate with crypto type 0 (ElGamal)
and the signature type as specified. |
KeyCertificate(SigType type,
EncType etype)A KeyCertificate with crypto type
and the signature type as specified. |
Signature(SigType type)Unknown type not allowed as we won't know the length to read in the data. |
Signature(SigType type,
byte[] data)Should we allow an unknown type here? |
SigningPrivateKey(SigType type) |
SigningPrivateKey(SigType type,
byte[] data) |
SigningPublicKey(SigType type)If null, type is unknown. |
SigningPublicKey(SigType type,
byte[] data)If null, type is unknown. |
| Constructor and Description |
|---|
BlindingInfoMessage(Destination d,
SessionId id,
int expiration,
int authType,
SigType blindType,
PrivateKey privKey,
String secret)Creates a BlindingInfoMessage for a destination. |
BlindingInfoMessage(Hash h,
SessionId id,
int expiration,
int authType,
SigType blindType,
PrivateKey privKey,
String secret)Deprecated. unimplemented on router side |
BlindingInfoMessage(SigningPublicKey s,
SessionId id,
int expiration,
int authType,
SigType blindType,
PrivateKey privKey,
String secret)Creates a BlindingInfoMessage for a signing public key. |
BlindingInfoMessage(String h,
SessionId id,
int expiration,
int authType,
SigType blindType,
PrivateKey privKey,
String secret)Deprecated. unimplemented on router side |
| Modifier and Type | Field and Description |
|---|---|
static SigType | TunnelController.PREFERRED_SIGTYPEThis is guaranteed to be available. |
| Modifier and Type | Method and Description |
|---|---|
void | BlindCache.setBlinded(Destination dest,
SigType blindedType,
String secret)Mark a destination as known to be blinded |
| Modifier and Type | Method and Description |
|---|---|
static SigType | CreateRouterInfoJob.getSigTypeConfig(RouterContext ctx)The configured SigType to expect on read-in. |
| Modifier and Type | Method and Description |
|---|---|
void | NetDbRenderer.renderRouterInfoHTML(Writer out,
int pageSize,
int page,
String routerPrefix,
String version,
String country,
String family,
String capabilities,
String ipAddress,
String sybil,
int port,
int highPort,
SigType signatureType,
EncType encryptionType,
String mtu,
String ipv6Address,
String ssuCapabilities,
String transport,
int cost,
int introducerCount)render router info html. |
| Modifier and Type | Method and Description |
|---|---|
static void | SAMUtils.genRandomKey(OutputStream priv,
OutputStream pub,
SigType sigType)Generate a random destination key. |