public class KeyPair extends Object
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.
| Constructor and Description |
|---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey) |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getPrivate() |
PublicKey |
getPublic() |
public KeyPair(PublicKey publicKey, PrivateKey privateKey)
publicKey - non-null, same EncType as privateKeyprivateKey - non-null, same EncType as publicKeypublic PrivateKey getPrivate()
public PublicKey getPublic()