Class MldsaPublicKeyBuilder
java.lang.Object
zeroecho.core.alg.mldsa.MldsaPublicKeyBuilder
- All Implemented Interfaces:
PublicKeyImporter<MldsaPublicKeySpec>
public final class MldsaPublicKeyBuilder
extends Object
implements PublicKeyImporter<MldsaPublicKeySpec>
Builder for importing ML-DSA public keys from encoded specifications.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionImports a public key from X.509 encoding.
-
Constructor Details
-
MldsaPublicKeyBuilder
public MldsaPublicKeyBuilder()Creates a stateless ML-DSA public-key importer.
-
-
Method Details
-
importPublic
Imports a public key from X.509 encoding.- Specified by:
importPublicin interfacePublicKeyImporter<MldsaPublicKeySpec>- Parameters:
spec- encoded public key spec- Returns:
- imported public key
- Throws:
GeneralSecurityException- if the key cannot be parsed or the provider does not support ML-DSA
-