Class MLDSAKeyFactorySpi
- java.lang.Object
-
- java.security.KeyFactorySpi
-
- org.bouncycastle.jcajce.provider.asymmetric.util.BasePQCKeyFactorySpi
-
- org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi
-
- All Implemented Interfaces:
AsymmetricKeyInfoConverter
- Direct Known Subclasses:
MLDSAKeyFactorySpi.Hash,MLDSAKeyFactorySpi.HashMLDSA44,MLDSAKeyFactorySpi.HashMLDSA65,MLDSAKeyFactorySpi.HashMLDSA87,MLDSAKeyFactorySpi.MLDSA44,MLDSAKeyFactorySpi.MLDSA65,MLDSAKeyFactorySpi.MLDSA87,MLDSAKeyFactorySpi.Pure
public class MLDSAKeyFactorySpi extends BasePQCKeyFactorySpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMLDSAKeyFactorySpi.Hashstatic classMLDSAKeyFactorySpi.HashMLDSA44static classMLDSAKeyFactorySpi.HashMLDSA65static classMLDSAKeyFactorySpi.HashMLDSA87static classMLDSAKeyFactorySpi.MLDSA44static classMLDSAKeyFactorySpi.MLDSA65static classMLDSAKeyFactorySpi.MLDSA87static classMLDSAKeyFactorySpi.Pure
-
Constructor Summary
Constructors Constructor Description MLDSAKeyFactorySpi(java.util.Set<ASN1ObjectIdentifier> keyOids)MLDSAKeyFactorySpi(ASN1ObjectIdentifier keyOid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.PrivateKeyengineGeneratePrivate(java.security.spec.KeySpec keySpec)java.security.PublicKeyengineGeneratePublic(java.security.spec.KeySpec keySpec)java.security.spec.KeySpecengineGetKeySpec(java.security.Key key, java.lang.Class keySpec)java.security.KeyengineTranslateKey(java.security.Key key)java.security.PrivateKeygeneratePrivate(PrivateKeyInfo keyInfo)java.security.PublicKeygeneratePublic(SubjectPublicKeyInfo keyInfo)
-
-
-
Constructor Detail
-
MLDSAKeyFactorySpi
public MLDSAKeyFactorySpi(java.util.Set<ASN1ObjectIdentifier> keyOids)
-
MLDSAKeyFactorySpi
public MLDSAKeyFactorySpi(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:
engineGetKeySpecin 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:
engineTranslateKeyin classjava.security.KeyFactorySpi- Throws:
java.security.InvalidKeyException
-
engineGeneratePrivate
public java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException- Overrides:
engineGeneratePrivatein classBasePQCKeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
engineGeneratePublic
public java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException- Overrides:
engineGeneratePublicin classBasePQCKeyFactorySpi- 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
-
-