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)Non-null, same EncType as privateKey. |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey | getPrivate()Private key of this keypair. |
PublicKey | getPublic()Public key of this keypair. |
public KeyPair(PublicKey publicKey, PrivateKey privateKey)
publicKey - non-null, same EncType as privateKeyprivateKey - non-null, same EncType as publicKeypublic PrivateKey getPrivate()
public PublicKey getPublic()