Class JDKKeyFactory
java.lang.Object
java.security.KeyFactorySpi
org.gudy.bouncycastle.jce.provider.JDKKeyFactory
- Direct Known Subclasses:
JDKKeyFactory.EC
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static PrivateKey(package private) static PrivateKeycreate a private key from the given public key info object.(package private) static PublicKey(package private) static PublicKeyprotected KeySpecengineGetKeySpec(Key key, Class spec) protected KeyengineTranslateKey(Key key) Methods inherited from class KeyFactorySpi
engineGeneratePrivate, engineGeneratePublic
-
Constructor Details
-
JDKKeyFactory
public JDKKeyFactory()
-
-
Method Details
-
engineGetKeySpec
- Specified by:
engineGetKeySpecin classKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineTranslateKey
- Specified by:
engineTranslateKeyin classKeyFactorySpi- Throws:
InvalidKeyException
-
createPublicKeyFromDERStream
- Throws:
IOException
-
createPublicKeyFromPublicKeyInfo
-
createPrivateKeyFromDERStream
- Throws:
IOException
-
createPrivateKeyFromPrivateKeyInfo
create a private key from the given public key info object.
-