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()
MLDSAPrivateKey
getPublicKey
in interface MLDSAPrivateKey
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public MLDSAParameterSpec getParameterSpec()
MLDSAKey
getParameterSpec
in interface MLDSAKey
public byte[] getPrivateData()
MLDSAPrivateKey
getPrivateData
in interface MLDSAPrivateKey
public byte[] getSeed()
MLDSAPrivateKey
getSeed
in interface MLDSAPrivateKey
public MLDSAPrivateKey getPrivateKey(boolean preferSeedOnly)
MLDSAPrivateKey
getPrivateKey
in interface MLDSAPrivateKey
preferSeedOnly
- if true, return a privateKey which will encode to seed-only if possible.