Class MLKEMKeyFactorySpi
- java.lang.Object
-
- java.security.KeyFactorySpi
-
- org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi
-
- org.bouncycastle.jcajce.provider.asymmetric.mlkem.MLKEMKeyFactorySpi
-
- All Implemented Interfaces:
AsymmetricKeyInfoConverter
- Direct Known Subclasses:
MLKEMKeyFactorySpi.MLKEM1024
,MLKEMKeyFactorySpi.MLKEM512
,MLKEMKeyFactorySpi.MLKEM768
public class MLKEMKeyFactorySpi extends BaseKeyFactorySpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MLKEMKeyFactorySpi.MLKEM1024
static class
MLKEMKeyFactorySpi.MLKEM512
static class
MLKEMKeyFactorySpi.MLKEM768
-
Constructor Summary
Constructors Constructor Description MLKEMKeyFactorySpi()
MLKEMKeyFactorySpi(ASN1ObjectIdentifier keyOid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.PrivateKey
engineGeneratePrivate(java.security.spec.KeySpec keySpec)
java.security.PublicKey
engineGeneratePublic(java.security.spec.KeySpec keySpec)
java.security.spec.KeySpec
engineGetKeySpec(java.security.Key key, java.lang.Class keySpec)
java.security.Key
engineTranslateKey(java.security.Key key)
java.security.PrivateKey
generatePrivate(PrivateKeyInfo keyInfo)
java.security.PublicKey
generatePublic(SubjectPublicKeyInfo keyInfo)
-
-
-
Constructor Detail
-
MLKEMKeyFactorySpi
public MLKEMKeyFactorySpi()
-
MLKEMKeyFactorySpi
public MLKEMKeyFactorySpi(ASN1ObjectIdentifier keyOid)
-
-
Method Detail
-
engineGetKeySpec
public final java.security.spec.KeySpec engineGetKeySpec(java.security.Key key, java.lang.Class keySpec) throws java.security.spec.InvalidKeySpecException
- Specified by:
engineGetKeySpec
in classjava.security.KeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
-
engineTranslateKey
public final java.security.Key engineTranslateKey(java.security.Key key) throws java.security.InvalidKeyException
- Specified by:
engineTranslateKey
in classjava.security.KeyFactorySpi
- Throws:
java.security.InvalidKeyException
-
engineGeneratePrivate
public java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
- Overrides:
engineGeneratePrivate
in classBaseKeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
-
engineGeneratePublic
public java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
- Overrides:
engineGeneratePublic
in classBaseKeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
-
generatePrivate
public java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
generatePublic
public java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
-