Class Ed25519PublicKeyBuilder

All Implemented Interfaces:
PublicKeyImporter<Ed25519PublicKeySpec>

public final class Ed25519PublicKeyBuilder extends AbstractEncodedPublicKeyBuilder<Ed25519PublicKeySpec>

Public key builder for Ed25519

Concrete PublicKeyImporter for importing wrapping Ed25519 public keys.

This builder integrates with the JCA under the canonical key factory algorithm name "Ed25519". It consumes an Ed25519PublicKeySpec, which provides the encoded X.509 representation of the public key.

Responsibilities

  • Expose the JCA key factory name "Ed25519" for interoperability.
  • Provide the encoded X.509 bytes via Ed25519PublicKeySpec.encoded() for key material import.

Usage example

// Import a public key from its encoded X.509 form
Ed25519PublicKeySpec spec = new Ed25519PublicKeySpec(x509Bytes);
PublicKey publicKey = session.keyBuilders().asymmetric().importPublic("Ed25519", spec);

Thread-safety

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