org.bouncycastle.jce.provider
public abstract class JDKKeyFactory extends java.security.KeyFactorySpi
| Modifier and Type | Class and Description |
|---|---|
static class |
JDKKeyFactory.DH |
static class |
JDKKeyFactory.DSA |
static class |
JDKKeyFactory.ElGamal |
static class |
JDKKeyFactory.GOST3410 |
static class |
JDKKeyFactory.RSA |
static class |
JDKKeyFactory.X509
This isn't really correct, however the class path project API seems to think such
a key factory will exist.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
elGamalFactory |
| Constructor and Description |
|---|
JDKKeyFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.security.PrivateKey |
createPrivateKeyFromDERStream(byte[] in)
create a private key from the given DER encoded input stream.
|
static java.security.PublicKey |
createPublicKeyFromDERStream(byte[] in)
create a public key from the given DER encoded input stream.
|
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) |
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePrivate in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecExceptionprotected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePublic in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecExceptionprotected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key,
java.lang.Class spec)
throws java.security.spec.InvalidKeySpecException
engineGetKeySpec in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecExceptionprotected java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
engineTranslateKey in class java.security.KeyFactorySpijava.security.InvalidKeyExceptionpublic static java.security.PublicKey createPublicKeyFromDERStream(byte[] in)
throws java.io.IOException
java.io.IOExceptionprotected static java.security.PrivateKey createPrivateKeyFromDERStream(byte[] in)
throws java.io.IOException
java.io.IOException