|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.jcajce.provider.asymmetric.mldsa.BCMLDSAPrivateKey
Constructor Summary | |
BCMLDSAPrivateKey(MLDSAPrivateKeyParameters params)
|
|
BCMLDSAPrivateKey(PrivateKeyInfo keyInfo)
|
Method Summary | |
boolean |
equals(java.lang.Object o)
Compare this ML-DSA private key with another object. |
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). |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BCMLDSAPrivateKey(MLDSAPrivateKeyParameters params)
public BCMLDSAPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
Method Detail |
public boolean equals(java.lang.Object o)
o
- the other object
public int hashCode()
public final java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public MLDSAPrivateKey getPrivateKey(boolean preferSeedOnly)
MLDSAPrivateKey
getPrivateKey
in interface MLDSAPrivateKey
preferSeedOnly
- if true, return a privateKey which will encode to seed-only if possible.
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public MLDSAPublicKey getPublicKey()
MLDSAPrivateKey
getPublicKey
in interface MLDSAPrivateKey
public byte[] getPrivateData()
MLDSAPrivateKey
getPrivateData
in interface MLDSAPrivateKey
public byte[] getSeed()
MLDSAPrivateKey
getSeed
in interface MLDSAPrivateKey
public MLDSAParameterSpec getParameterSpec()
MLDSAKey
getParameterSpec
in interface MLDSAKey
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public java.lang.String toString()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |