Package net.i2p.crypto.eddsa
Class KeyFactory
java.lang.Object
java.security.KeyFactorySpi
net.i2p.crypto.eddsa.KeyFactory
- Since:
- 0.9.15
- Author:
- str4d
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected PrivateKey
engineGeneratePrivate
(KeySpec keySpec) As of 0.9.25, supports PKCS8EncodedKeySpecprotected PublicKey
engineGeneratePublic
(KeySpec keySpec) As of 0.9.25, supports X509EncodedKeySpecprotected <T extends KeySpec>
TengineGetKeySpec
(Key key, Class<T> keySpec) protected Key
engineTranslateKey
(Key key)
-
Constructor Details
-
KeyFactory
public KeyFactory()
-
-
Method Details
-
engineGeneratePrivate
As of 0.9.25, supports PKCS8EncodedKeySpec- Specified by:
engineGeneratePrivate
in classKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGeneratePublic
As of 0.9.25, supports X509EncodedKeySpec- Specified by:
engineGeneratePublic
in classKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGetKeySpec
protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException - Specified by:
engineGetKeySpec
in classKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineTranslateKey
- Specified by:
engineTranslateKey
in classKeyFactorySpi
- Throws:
InvalidKeyException
-