Class Ed25519KeyGenSpec
java.lang.Object
zeroecho.core.alg.ed25519.Ed25519KeyGenSpec
- All Implemented Interfaces:
AlgorithmKeySpec
Specification for Ed25519 key-pair generation
MarkerAlgorithmKeySpec used to request generation
of Ed25519 key pairs.
Ed25519 has no tunable domain parameters (e.g., key size or curve options).
Therefore, this spec acts as a simple token to identify the algorithm when
invoking key generation. All instances are equivalent; applications should
typically use defaultSpec().
Usage example
// Generate a new Ed25519 key pair using the default spec
KeyPair kp = session.keyBuilders().asymmetric()
.generateKeyPair("Ed25519", Ed25519KeyGenSpec.defaultSpec());
Thread-safety
The default spec instance is immutable and safe to reuse across threads.- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the parameter-free Ed25519 key-generation specification. -
Method Summary
Modifier and TypeMethodDescriptionstatic Ed25519KeyGenSpecReturns the canonical, shared default spec instance for Ed25519 key generation.
-
Constructor Details
-
Ed25519KeyGenSpec
public Ed25519KeyGenSpec()Creates the parameter-free Ed25519 key-generation specification.
-
-
Method Details
-
defaultSpec
Returns the canonical, shared default spec instance for Ed25519 key generation.Since Ed25519 has no configurable parameters, this singleton should be used for all generation requests. Applications may still construct additional instances, but they are functionally identical.
- Returns:
- the default Ed25519 key generation spec
-