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
public class KeyFactorySpi extends BaseKeyFactorySpi implements AsymmetricKeyInfoConverter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyFactorySpi.EC
static class
KeyFactorySpi.ECDH
static class
KeyFactorySpi.ECDHC
static class
KeyFactorySpi.ECDSA
static class
KeyFactorySpi.ECGOST3410
static class
KeyFactorySpi.ECGOST3410_2012
static class
KeyFactorySpi.ECMQV
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PrivateKey
engineGeneratePrivate(KeySpec keySpec)
protected PublicKey
engineGeneratePublic(KeySpec keySpec)
protected KeySpec
engineGetKeySpec(Key key, Class spec)
protected Key
engineTranslateKey(Key key)
PrivateKey
generatePrivate(PrivateKeyInfo keyInfo)
PublicKey
generatePublic(SubjectPublicKeyInfo keyInfo)
-
-
-
Method Detail
-
engineTranslateKey
protected Key engineTranslateKey(Key key) throws InvalidKeyException
- Specified by:
engineTranslateKey
in classKeyFactorySpi
- Throws:
InvalidKeyException
-
engineGetKeySpec
protected KeySpec engineGetKeySpec(Key key, Class spec) throws InvalidKeySpecException
- Overrides:
engineGetKeySpec
in classBaseKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGeneratePrivate
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
- Overrides:
engineGeneratePrivate
in classBaseKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGeneratePublic
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
- Overrides:
engineGeneratePublic
in classBaseKeyFactorySpi
- Throws:
InvalidKeySpecException
-
generatePrivate
public PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws IOException
- Specified by:
generatePrivate
in interfaceAsymmetricKeyInfoConverter
- Throws:
IOException
-
generatePublic
public PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws IOException
- Specified by:
generatePublic
in interfaceAsymmetricKeyInfoConverter
- Throws:
IOException
-
-