java.lang.Object
net.i2p.crypto.KeyPair
- Direct Known Subclasses:
Elg2KeyPair
A pair of I2P cryptographic keys consisting of a public key and corresponding private key.
This class provides a type-safe container for I2P key pairs, similar to KeyPair but specifically designed for I2P's cryptographic operations including encryption, decryption, and digital signatures within the I2P network.
The public key is used for encryption and signature verification, while the private key is used for decryption and signing operations.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PrivateKeyThe private half of the pair.private final PublicKeyThe public half of the pair.Constructor Summary
ConstructorsConstructorDescriptionKeyPair(PublicKey publicKey, PrivateKey privateKey) Non-null, same EncType as privateKey.Method Summary
All MethodsModifier and TypeMethodDescriptionPrivate key of this keypair.Public key of this keypair.
Field Details
pub
The public half of the pair.priv
The private half of the pair.
Constructor Details
KeyPair
Non-null, same EncType as privateKey.- Parameters:
publicKey- non-null, same EncType as privateKeyprivateKey- non-null, same EncType as publicKey
Method Details
getPublic
getPrivate