Class KeyFactorySpi
- java.lang.Object
-
- java.security.KeyFactorySpi
-
- org.bouncycastle.jcajce.provider.asymmetric.util.BaseKeyFactorySpi
-
- org.bouncycastle.jcajce.provider.asymmetric.elgamal.KeyFactorySpi
-
- All Implemented Interfaces:
AsymmetricKeyInfoConverter
public class KeyFactorySpi extends BaseKeyFactorySpi
-
-
Constructor Summary
Constructors Constructor Description KeyFactorySpi()
-
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 info)
java.security.PublicKey
generatePublic(SubjectPublicKeyInfo info)
-
-
-
Method Detail
-
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
-
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
-
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
-
generatePrivate
public java.security.PrivateKey generatePrivate(PrivateKeyInfo info) throws java.io.IOException
- Throws:
java.io.IOException
-
generatePublic
public java.security.PublicKey generatePublic(SubjectPublicKeyInfo info) throws java.io.IOException
- Throws:
java.io.IOException
-
-