Package net.i2p.crypto.elgamal
Class KeyFactory
java.lang.Object
java.security.KeyFactorySpi
net.i2p.crypto.elgamal.KeyFactory
public final class KeyFactory extends KeyFactorySpi
Modified from eddsa
- Since:
- 0.9.25
-
Constructor Summary
Constructors Constructor Description KeyFactory()
-
Method Summary
Modifier and Type Method Description protected PrivateKey
engineGeneratePrivate(KeySpec keySpec)
Supports PKCS8EncodedKeySpecprotected PublicKey
engineGeneratePublic(KeySpec keySpec)
Supports X509EncodedKeySpecprotected <T extends KeySpec>
TengineGetKeySpec(Key key, Class<T> keySpec)
protected Key
engineTranslateKey(Key key)
-
Constructor Details
-
KeyFactory
public KeyFactory()
-
-
Method Details
-
engineGeneratePrivate
Supports PKCS8EncodedKeySpec- Specified by:
engineGeneratePrivate
in classKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGeneratePublic
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
-