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 java.security.PrivateKey
engineGeneratePrivate(java.security.spec.KeySpec keySpec)
protected java.security.PublicKey
engineGeneratePublic(java.security.spec.KeySpec keySpec)
protected java.security.spec.KeySpec
engineGetKeySpec(java.security.Key key, java.lang.Class spec)
protected java.security.Key
engineTranslateKey(java.security.Key key)
java.security.PrivateKey
generatePrivate(PrivateKeyInfo keyInfo)
java.security.PublicKey
generatePublic(SubjectPublicKeyInfo keyInfo)
-
-
-
Method Detail
-
engineTranslateKey
protected java.security.Key engineTranslateKey(java.security.Key key) throws java.security.InvalidKeyException
- Specified by:
engineTranslateKey
in classjava.security.KeyFactorySpi
- Throws:
java.security.InvalidKeyException
-
engineGetKeySpec
protected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key, java.lang.Class spec) throws java.security.spec.InvalidKeySpecException
- Overrides:
engineGetKeySpec
in classBaseKeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
-
engineGeneratePrivate
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
- Overrides:
engineGeneratePrivate
in classBaseKeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
-
engineGeneratePublic
protected 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
- Specified by:
generatePrivate
in interfaceAsymmetricKeyInfoConverter
- Throws:
java.io.IOException
-
generatePublic
public java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
- Specified by:
generatePublic
in interfaceAsymmetricKeyInfoConverter
- Throws:
java.io.IOException
-
-