Package | Description |
---|---|
net.i2p.client |
Implements the base I2P SDK for developing applications that communicate
through I2P.
|
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.router.startup |
The I2P startup package loads the configuration when I2P is started.
|
net.i2p.sam |
Modifier and Type | Field and Description |
---|---|
static SigType |
I2PClient.DEFAULT_SIGTYPE |
Modifier and Type | Method and Description |
---|---|
Destination |
I2PSimpleClient.createDestination(OutputStream destKeyStream,
SigType type)
Deprecated.
Don't do this
|
Destination |
I2PClientImpl.createDestination(OutputStream destKeyStream,
SigType type)
Create a destination with the given signature type.
|
Destination |
I2PClient.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) |
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 SigningPrivateKey |
SigUtil.fromJavaKey(ECPrivateKey pk,
SigType type) |
static SigningPublicKey |
SigUtil.fromJavaKey(ECPublicKey pk,
SigType type) |
static SigningPrivateKey |
SigUtil.fromJavaKey(EdDSAPrivateKey pk,
SigType type) |
static SigningPublicKey |
SigUtil.fromJavaKey(EdDSAPublicKey pk,
SigType type) |
static SigningPrivateKey |
SigUtil.fromJavaKey(PrivateKey pk,
SigType type) |
static SigningPublicKey |
SigUtil.fromJavaKey(PublicKey pk,
SigType type) |
static SigningPrivateKey |
SigUtil.fromJavaKey(RSAPrivateKey pk,
SigType type)
Deprecated.
unused
|
static SigningPublicKey |
SigUtil.fromJavaKey(RSAPublicKey pk,
SigType type) |
static Signature |
SigUtil.fromJavaSig(byte[] asn,
SigType type) |
SimpleDataStructure[] |
KeyGenerator.generateSigningKeys(SigType type)
Generic signature type, supports DSA and ECDSA
|
PublicKey |
KeyRing.getKey(String keyName,
String scope,
SigType type)
Get a key.
|
PublicKey |
DirKeyRing.getKey(String keyName,
String scope,
SigType type)
Cert must be in the file (escaped keyName).crt,
and have a CN == keyName.
|
static PrivateKey |
SigUtil.importJavaPrivateKey(File file,
SigType type) |
static PublicKey |
SigUtil.importJavaPublicKey(File file,
SigType type) |
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 |
KeyCertificate.getSigType() |
SigType |
Signature.getType() |
SigType |
SigningPublicKey.getType() |
SigType |
SigningPrivateKey.getType() |
Modifier and Type | Method and Description |
---|---|
Certificate |
PrivateKeyFile.setKeyCert(SigType type)
Change cert type - caller must also call write().
|
Constructor and Description |
---|
KeyCertificate(SigType type)
A KeyCertificate with crypto type 0 (ElGamal)
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) |
SigningPublicKey(SigType type,
byte[] data) |
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 |
---|---|
static void |
SAMUtils.genRandomKey(OutputStream priv,
OutputStream pub,
SigType sigType)
Generate a random destination key.
|