org.bouncycastle.jce.provider
Class JDKKeyFactory
java.lang.Object
java.security.KeyFactorySpi
org.bouncycastle.jce.provider.JDKKeyFactory
- Direct Known Subclasses:
- JDKKeyFactory.DH, JDKKeyFactory.DSA, JDKKeyFactory.EC, JDKKeyFactory.ElGamal, JDKKeyFactory.GOST3410, JDKKeyFactory.RSA, JDKKeyFactory.X509
public abstract class JDKKeyFactory
- extends java.security.KeyFactorySpi
Methods inherited from class java.security.KeyFactorySpi |
engineGeneratePrivate, engineGeneratePublic |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elGamalFactory
protected boolean elGamalFactory
JDKKeyFactory
public JDKKeyFactory()
engineGetKeySpec
protected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key,
java.lang.Class spec)
throws java.security.spec.InvalidKeySpecException
- Specified by:
engineGetKeySpec
in class java.security.KeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
engineTranslateKey
protected java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
- Specified by:
engineTranslateKey
in class java.security.KeyFactorySpi
- Throws:
java.security.InvalidKeyException
createPublicKeyFromDERStream
static java.security.PublicKey createPublicKeyFromDERStream(byte[] in)
throws java.io.IOException
- create a public key from the given DER encoded input stream.
- Throws:
java.io.IOException
createPublicKeyFromPublicKeyInfo
static java.security.PublicKey createPublicKeyFromPublicKeyInfo(SubjectPublicKeyInfo info)
- create a public key from the given public key info object.
createPrivateKeyFromDERStream
static java.security.PrivateKey createPrivateKeyFromDERStream(byte[] in)
throws java.io.IOException
- create a private key from the given DER encoded input stream.
- Throws:
java.io.IOException
createPrivateKeyFromPrivateKeyInfo
static java.security.PrivateKey createPrivateKeyFromPrivateKeyInfo(PrivateKeyInfo info)
- create a private key from the given public key info object.