Class KeyFactorySpi
java.lang.Object
java.security.KeyFactorySpi
org.bouncycastle.jcajce.provider.asymmetric.util.BaseKeyFactorySpi
org.bouncycastle.jcajce.provider.asymmetric.rsa.KeyFactorySpi
- All Implemented Interfaces:
AsymmetricKeyInfoConverter
- Direct Known Subclasses:
KeyFactorySpi.PSS
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classKeyFactory for the "RSASSA-PSS" algorithm. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PrivateKeyengineGeneratePrivate(KeySpec keySpec) protected PublicKeyengineGeneratePublic(KeySpec keySpec) protected KeySpecengineGetKeySpec(Key key, Class spec) protected KeyengineTranslateKey(Key key) generatePrivate(PrivateKeyInfo keyInfo) generatePublic(SubjectPublicKeyInfo keyInfo)
-
Constructor Details
-
KeyFactorySpi
public KeyFactorySpi() -
KeyFactorySpi
- Parameters:
algorithmIdentifier- the AlgorithmIdentifier to stamp on keys built from rawRSAPublicKeySpec/RSAPrivateKeySpec/RSAPrivateCrtKeySpecparameters, or null for the default rsaEncryption identifier.
-
-
Method Details
-
engineGetKeySpec
- Overrides:
engineGetKeySpecin classBaseKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineTranslateKey
- Specified by:
engineTranslateKeyin classKeyFactorySpi- Throws:
InvalidKeyException
-
engineGeneratePrivate
- Overrides:
engineGeneratePrivatein classBaseKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineGeneratePublic
- Overrides:
engineGeneratePublicin classBaseKeyFactorySpi- Throws:
InvalidKeySpecException
-
generatePrivate
- Throws:
IOException
-
generatePublic
- Throws:
IOException
-