public class KeyFactorySpi extends BaseKeyFactorySpi implements AsymmetricKeyInfoConverter
Constructor and Description |
---|
KeyFactorySpi() |
KeyFactorySpi(JcaJceHelper helper) |
Modifier and Type | Method and Description |
---|---|
protected java.security.Key |
engineTranslateKey(java.security.Key key) |
java.security.PrivateKey |
generatePrivate(PrivateKeyInfo keyInfo)
Creates a CompositePrivateKey from its PrivateKeyInfo encoded form.
|
java.security.PublicKey |
generatePublic(SubjectPublicKeyInfo keyInfo)
Creates a CompositePublicKey from its SubjectPublicKeyInfo encoded form.
|
engineGeneratePrivate, engineGeneratePublic, engineGetKeySpec
public KeyFactorySpi()
public KeyFactorySpi(JcaJceHelper helper)
protected java.security.Key engineTranslateKey(java.security.Key key) throws java.security.InvalidKeyException
engineTranslateKey
in class java.security.KeyFactorySpi
java.security.InvalidKeyException
public java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws java.io.IOException
generatePrivate
in interface AsymmetricKeyInfoConverter
keyInfo
- PrivateKeyInfo containing a sequence of PrivateKeyInfos corresponding to each component.java.io.IOException
public java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
generatePublic
in interface AsymmetricKeyInfoConverter
keyInfo
- SubjectPublicKeyInfo containing a sequence of BIT STRINGs corresponding to each component.java.io.IOException