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, engineGetKeySpecpublic KeyFactorySpi()
public KeyFactorySpi(JcaJceHelper helper)
protected java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
engineTranslateKey in class java.security.KeyFactorySpijava.security.InvalidKeyExceptionpublic java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws java.io.IOException
generatePrivate in interface AsymmetricKeyInfoConverterkeyInfo - PrivateKeyInfo containing a sequence of PrivateKeyInfos corresponding to each component.java.io.IOExceptionpublic java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
generatePublic in interface AsymmetricKeyInfoConverterkeyInfo - SubjectPublicKeyInfo containing a sequence of BIT STRINGs corresponding to each component.java.io.IOException