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.ECGOST3410_2012 |
static class |
KeyFactorySpi.ECMQV |
Modifier and Type | Method and Description |
---|---|
protected PrivateKey |
engineGeneratePrivate(KeySpec keySpec) |
protected PublicKey |
engineGeneratePublic(KeySpec keySpec) |
protected KeySpec |
engineGetKeySpec(Key key,
Class spec) |
protected Key |
engineTranslateKey(Key key) |
PrivateKey |
generatePrivate(PrivateKeyInfo keyInfo) |
PublicKey |
generatePublic(SubjectPublicKeyInfo keyInfo) |
protected Key engineTranslateKey(Key key) throws InvalidKeyException
engineTranslateKey
in class KeyFactorySpi
InvalidKeyException
protected KeySpec engineGetKeySpec(Key key, Class spec) throws InvalidKeySpecException
engineGetKeySpec
in class BaseKeyFactorySpi
InvalidKeySpecException
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePrivate
in class BaseKeyFactorySpi
InvalidKeySpecException
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePublic
in class BaseKeyFactorySpi
InvalidKeySpecException
public PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws IOException
generatePrivate
in interface AsymmetricKeyInfoConverter
IOException
public PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws IOException
generatePublic
in interface AsymmetricKeyInfoConverter
IOException
Copyright © 2021 BouncyCastle.org. All rights reserved.