org.mozilla.jss.provider.java.security
public class KeyFactorySpi1_2 extends KeyFactorySpi
| Method Summary | |
|---|---|
| protected PrivateKey | engineGeneratePrivate(KeySpec keySpec)
We don't support RSAPrivateKeySpec because it doesn't have enough
information. |
| protected PublicKey | engineGeneratePublic(KeySpec keySpec) |
| protected KeySpec | engineGetKeySpec(Key key, Class keySpec) |
| protected Key | engineTranslateKey(Key key)
Translates key by calling getEncoded() to get its encoded form,
then importing the key from its encoding. |
This method is not well standardized: the documentation is very vague about how the key is supposed to be translated. It is better to move keys around by wrapping and unwrapping them; or by manually translating to a KeySpec, then manually translating back to a Key.