public interface MLDSAPrivateKey extends java.security.PrivateKey, MLDSAKey
Modifier and Type | Method and Description |
---|---|
byte[] |
getPrivateData()
Return the long form private data for the ML-DSA private key.
|
MLDSAPrivateKey |
getPrivateKey(boolean preferSeedOnly)
Return a privateKey which will encode as seed-only or as an expanded-key.
|
MLDSAPublicKey |
getPublicKey()
Return the public key corresponding to this private key.
|
byte[] |
getSeed()
Return the seed the private key was generated from (if available).
|
getParameterSpec
MLDSAPublicKey getPublicKey()
byte[] getPrivateData()
byte[] getSeed()
MLDSAPrivateKey getPrivateKey(boolean preferSeedOnly)
preferSeedOnly
- if true, return a privateKey which will encode to seed-only if possible.