public class KeyFactorySpi extends BaseKeyFactorySpi
Constructor and Description |
---|
KeyFactorySpi() |
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(org.bouncycastle.asn1.pkcs.PrivateKeyInfo keyInfo) |
PublicKey |
generatePublic(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo) |
protected KeySpec engineGetKeySpec(Key key, Class spec) throws InvalidKeySpecException
engineGetKeySpec
in class BaseKeyFactorySpi
InvalidKeySpecException
protected Key engineTranslateKey(Key key) throws InvalidKeyException
engineTranslateKey
in class KeyFactorySpi
InvalidKeyException
public PrivateKey generatePrivate(org.bouncycastle.asn1.pkcs.PrivateKeyInfo keyInfo) throws IOException
IOException
public PublicKey generatePublic(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo) throws IOException
IOException
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePrivate
in class BaseKeyFactorySpi
InvalidKeySpecException
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePublic
in class BaseKeyFactorySpi
InvalidKeySpecException
Copyright © 2017 BouncyCastle.org. All rights reserved.