public class BCFrodoKEMPrivateKey extends java.lang.Object implements FrodoKEMPrivateKey, javax.security.auth.Destroyable
| Constructor and Description |
|---|
BCFrodoKEMPrivateKey(FrodoKEMPrivateKeyParameters params) |
BCFrodoKEMPrivateKey(PrivateKeyInfo keyInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy this key, zeroizing the secret key material it holds.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
FrodoKEMParameterSpec |
getParameterSpec()
Return the parameters for this key.
|
java.security.spec.AlgorithmParameterSpec |
getParams()
Return the parameter set of this key as a java.security.spec.NamedParameterSpec, the form the
JDK's own keys report through java.security.AsymmetricKey.getParams() from Java 22.
|
int |
hashCode() |
boolean |
isDestroyed() |
public BCFrodoKEMPrivateKey(FrodoKEMPrivateKeyParameters params)
public BCFrodoKEMPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic java.security.spec.AlgorithmParameterSpec getParams()
public FrodoKEMParameterSpec getParameterSpec()
FrodoKEMKeygetParameterSpec in interface FrodoKEMKeypublic void destroy()
After destruction isDestroyed() returns true and getEncoded() throws
IllegalStateException.
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyable