All Known Implementing Classes:
Elg2KeyFactory, MLKEM.MLKEMFactory, MLKEMKeyFactory, X25519KeyFactory

public interface KeyFactory
Factory interface for generating I2P cryptographic key pairs.

Implementations of this interface provide methods to create KeyPair objects containing public and private keys for various cryptographic algorithms supported by I2P.

This abstraction allows for different key generation strategies while maintaining a consistent API across the I2P cryptographic framework.

  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    The keys for this destination.
  • Method Details

    • getKeys

      KeyPair getKeys()
      The keys for this destination.
      Returns:
      the key pair for the destination being built, a matching public and private key, recycled from the factory's prebuilt queue when one is available