Class Ed25519PrivateKeyBuilder

All Implemented Interfaces:
PrivateKeyImporter<Ed25519PrivateKeySpec>

public final class Ed25519PrivateKeyBuilder extends AbstractEncodedPrivateKeyBuilder<Ed25519PrivateKeySpec>

Private key builder for Ed25519

Concrete PrivateKeyImporter for importing wrapping Ed25519 private keys.

This builder integrates with the JCA under the canonical key factory algorithm name "Ed25519". It consumes an Ed25519PrivateKeySpec, which provides the encoded PKCS#8 representation of the private key.

Responsibilities

  • Expose the JCA key factory name "Ed25519" for interoperability.
  • Provide the encoded PKCS#8 bytes via Ed25519PrivateKeySpec.encoded() for key material import.

Usage example

// Import a private key from its encoded PKCS#8 form
Ed25519PrivateKeySpec spec = new Ed25519PrivateKeySpec(pkcs8Bytes);
PrivateKey privateKey = session.keyBuilders().asymmetric().importPrivate("Ed25519", spec);

Thread-safety

Instances of this builder are stateless and may be reused safely across threads.
Since:
1.0