public class MLDSAProxyPrivateKey extends java.lang.Object implements MLDSAPrivateKey
| Constructor and Description |
|---|
MLDSAProxyPrivateKey(java.security.PublicKey publicKey) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
MLDSAParameterSpec |
getParameterSpec()
Return the parameters for this key.
|
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).
|
public MLDSAProxyPrivateKey(java.security.PublicKey publicKey)
public MLDSAPublicKey getPublicKey()
MLDSAPrivateKeygetPublicKey in interface MLDSAPrivateKeypublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic MLDSAParameterSpec getParameterSpec()
MLDSAKeygetParameterSpec in interface MLDSAKeypublic byte[] getPrivateData()
MLDSAPrivateKeygetPrivateData in interface MLDSAPrivateKeypublic byte[] getSeed()
MLDSAPrivateKeygetSeed in interface MLDSAPrivateKeypublic MLDSAPrivateKey getPrivateKey(boolean preferSeedOnly)
MLDSAPrivateKeygetPrivateKey in interface MLDSAPrivateKeypreferSeedOnly - if true, return a privateKey which will encode to seed-only if possible.