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 KeyFactorySpi
InvalidKeySpecException
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePublic
in class KeyFactorySpi
InvalidKeySpecException
protected KeySpec engineGetKeySpec(Key key, Class spec) throws InvalidKeySpecException
engineGetKeySpec
in class KeyFactorySpi
InvalidKeySpecException
protected Key engineTranslateKey(Key key) throws InvalidKeyException
engineTranslateKey
in class KeyFactorySpi
InvalidKeyException
public static PublicKey createPublicKeyFromDERStream(byte[] in) throws IOException
IOException
protected static PrivateKey createPrivateKeyFromDERStream(byte[] in) throws IOException
IOException
Copyright © 2015. All rights reserved.