Class KeyFactorySpi
- java.lang.Object
-
- java.security.KeyFactorySpi
-
- org.bouncycastle.jcajce.provider.asymmetric.util.BaseKeyFactorySpi
-
- org.bouncycastle.jcajce.provider.asymmetric.edec.KeyFactorySpi
-
- All Implemented Interfaces:
AsymmetricKeyInfoConverter
- Direct Known Subclasses:
KeyFactorySpi.Ed25519,KeyFactorySpi.Ed448,KeyFactorySpi.EdDSA,KeyFactorySpi.X25519,KeyFactorySpi.X448,KeyFactorySpi.XDH
public class KeyFactorySpi extends BaseKeyFactorySpi implements AsymmetricKeyInfoConverter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyFactorySpi.Ed25519static classKeyFactorySpi.Ed448static classKeyFactorySpi.EdDSAstatic classKeyFactorySpi.X25519static classKeyFactorySpi.X448static classKeyFactorySpi.XDH
-
Constructor Summary
Constructors Constructor Description KeyFactorySpi(java.lang.String algorithm, boolean isXdh, int specificBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.security.PrivateKeyengineGeneratePrivate(java.security.spec.KeySpec keySpec)protected java.security.PublicKeyengineGeneratePublic(java.security.spec.KeySpec keySpec)protected java.security.spec.KeySpecengineGetKeySpec(java.security.Key key, java.lang.Class spec)protected java.security.KeyengineTranslateKey(java.security.Key key)java.security.PrivateKeygeneratePrivate(PrivateKeyInfo keyInfo)java.security.PublicKeygeneratePublic(SubjectPublicKeyInfo keyInfo)
-
-
-
Method Detail
-
engineTranslateKey
protected java.security.Key engineTranslateKey(java.security.Key key) throws java.security.InvalidKeyException- Specified by:
engineTranslateKeyin classjava.security.KeyFactorySpi- Throws:
java.security.InvalidKeyException
-
engineGetKeySpec
protected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key, java.lang.Class spec) throws java.security.spec.InvalidKeySpecException- Overrides:
engineGetKeySpecin classBaseKeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
engineGeneratePrivate
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException- Overrides:
engineGeneratePrivatein classBaseKeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
engineGeneratePublic
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException- Overrides:
engineGeneratePublicin classBaseKeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
generatePrivate
public java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws java.io.IOException
- Specified by:
generatePrivatein interfaceAsymmetricKeyInfoConverter- Throws:
java.io.IOException
-
generatePublic
public java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
- Specified by:
generatePublicin interfaceAsymmetricKeyInfoConverter- Throws:
java.io.IOException
-
-