public class KeyFactorySpi extends BaseKeyFactorySpi
Constructor and Description |
---|
KeyFactorySpi() |
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
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
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
keyInfo
- SubjectPublicKeyInfo containing a sequence of BIT STRINGs corresponding to each component.java.io.IOException