Class KeyFactorySpi
java.lang.Object
java.security.KeyFactorySpi
org.bouncycastle.jcajce.provider.asymmetric.util.BaseKeyFactorySpi
org.bouncycastle.jcajce.provider.asymmetric.ec.KeyFactorySpi
- All Implemented Interfaces:
AsymmetricKeyInfoConverter
- Direct Known Subclasses:
KeyFactorySpi.EC
,KeyFactorySpi.ECDH
,KeyFactorySpi.ECDHC
,KeyFactorySpi.ECDSA
,KeyFactorySpi.ECGOST3410
,KeyFactorySpi.ECGOST3410_2012
,KeyFactorySpi.ECMQV
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionprotected PrivateKey
engineGeneratePrivate
(KeySpec keySpec) protected PublicKey
engineGeneratePublic
(KeySpec keySpec) protected KeySpec
engineGetKeySpec
(Key key, Class spec) protected Key
engineTranslateKey
(Key key) generatePrivate
(PrivateKeyInfo keyInfo) generatePublic
(SubjectPublicKeyInfo keyInfo)
-
Method Details
-
engineTranslateKey
- Specified by:
engineTranslateKey
in classKeyFactorySpi
- Throws:
InvalidKeyException
-
engineGetKeySpec
- Overrides:
engineGetKeySpec
in classBaseKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGeneratePrivate
- Overrides:
engineGeneratePrivate
in classBaseKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGeneratePublic
- Overrides:
engineGeneratePublic
in classBaseKeyFactorySpi
- Throws:
InvalidKeySpecException
-
generatePrivate
- Specified by:
generatePrivate
in interfaceAsymmetricKeyInfoConverter
- Throws:
IOException
-
generatePublic
- Specified by:
generatePublic
in interfaceAsymmetricKeyInfoConverter
- Throws:
IOException
-