public class KeyFactorySpi extends BaseKeyFactorySpi implements AsymmetricKeyInfoConverter
Modifier and Type | Class and Description |
---|---|
static class |
KeyFactorySpi.EC |
static class |
KeyFactorySpi.ECDH |
static class |
KeyFactorySpi.ECDHC |
static class |
KeyFactorySpi.ECDSA |
static class |
KeyFactorySpi.ECGOST3410 |
static class |
KeyFactorySpi.ECMQV |
Modifier and Type | Method and 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 keyInfo) |
java.security.PublicKey |
generatePublic(SubjectPublicKeyInfo keyInfo) |
protected java.security.Key engineTranslateKey(java.security.Key key) throws java.security.InvalidKeyException
engineTranslateKey
in class java.security.KeyFactorySpi
java.security.InvalidKeyException
protected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key, java.lang.Class spec) throws java.security.spec.InvalidKeySpecException
engineGetKeySpec
in class BaseKeyFactorySpi
java.security.spec.InvalidKeySpecException
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
engineGeneratePrivate
in class BaseKeyFactorySpi
java.security.spec.InvalidKeySpecException
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
engineGeneratePublic
in class BaseKeyFactorySpi
java.security.spec.InvalidKeySpecException
public java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws java.io.IOException
generatePrivate
in interface AsymmetricKeyInfoConverter
java.io.IOException
public java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
generatePublic
in interface AsymmetricKeyInfoConverter
java.io.IOException