Package net.i2p.crypto.eddsa
Class KeyFactory
- java.lang.Object
-
- java.security.KeyFactorySpi
-
- net.i2p.crypto.eddsa.KeyFactory
-
public final class KeyFactory extends KeyFactorySpi
- Since:
- 0.9.15
- Author:
- str4d
-
-
Constructor Summary
Constructors Constructor Description KeyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PrivateKeyengineGeneratePrivate(KeySpec keySpec)As of 0.9.25, supports PKCS8EncodedKeySpecprotected PublicKeyengineGeneratePublic(KeySpec keySpec)As of 0.9.25, supports X509EncodedKeySpecprotected <T extends KeySpec>
TengineGetKeySpec(Key key, Class<T> keySpec)protected KeyengineTranslateKey(Key key)
-
-
-
Method Detail
-
engineGeneratePrivate
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
As of 0.9.25, supports PKCS8EncodedKeySpec- Specified by:
engineGeneratePrivatein classKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineGeneratePublic
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
As of 0.9.25, supports X509EncodedKeySpec- Specified by:
engineGeneratePublicin classKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineGetKeySpec
protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException
- Specified by:
engineGetKeySpecin classKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineTranslateKey
protected Key engineTranslateKey(Key key) throws InvalidKeyException
- Specified by:
engineTranslateKeyin classKeyFactorySpi- Throws:
InvalidKeyException
-
-