public abstract class JDKKeyFactory extends 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 PrivateKey |
createPrivateKeyFromDERStream(byte[] in)
create a private key from the given DER encoded input stream.
|
static PublicKey |
createPublicKeyFromDERStream(byte[] in)
create a public key from the given DER encoded input stream.
|
protected PrivateKey |
engineGeneratePrivate(KeySpec keySpec) |
protected PublicKey |
engineGeneratePublic(KeySpec keySpec) |
protected KeySpec |
engineGetKeySpec(Key key,
Class spec) |
protected Key |
engineTranslateKey(Key key) |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePrivate in class KeyFactorySpiInvalidKeySpecExceptionprotected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePublic in class KeyFactorySpiInvalidKeySpecExceptionprotected KeySpec engineGetKeySpec(Key key, Class spec) throws InvalidKeySpecException
engineGetKeySpec in class KeyFactorySpiInvalidKeySpecExceptionprotected Key engineTranslateKey(Key key) throws InvalidKeyException
engineTranslateKey in class KeyFactorySpiInvalidKeyExceptionpublic static PublicKey createPublicKeyFromDERStream(byte[] in) throws IOException
IOExceptionprotected static PrivateKey createPrivateKeyFromDERStream(byte[] in) throws IOException
IOExceptionCopyright © 2015. All rights reserved.