Class JSSSecretKeyFactorySpi
java.lang.Object
javax.crypto.SecretKeyFactorySpi
org.mozilla.jss.provider.javax.crypto.JSSSecretKeyFactorySpi
- Direct Known Subclasses:
JSSSecretKeyFactorySpi.AES,JSSSecretKeyFactorySpi.DES,JSSSecretKeyFactorySpi.DESede,JSSSecretKeyFactorySpi.GenericSecret,JSSSecretKeyFactorySpi.HmacSHA1,JSSSecretKeyFactorySpi.HmacSHA256,JSSSecretKeyFactorySpi.HmacSHA384,JSSSecretKeyFactorySpi.HmacSHA512,JSSSecretKeyFactorySpi.PBAHmacSHA1,JSSSecretKeyFactorySpi.PBE_MD5_DES_CBC,JSSSecretKeyFactorySpi.PBE_SHA1_DES_CBC,JSSSecretKeyFactorySpi.PBE_SHA1_DES3_CBC,JSSSecretKeyFactorySpi.PBE_SHA1_RC4_128,JSSSecretKeyFactorySpi.RC2,JSSSecretKeyFactorySpi.RC4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classDeprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static classstatic classstatic classstatic classDeprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static classstatic classDeprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static classDeprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static classDeprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionengineGenerateSecret(KeySpec spec) engineGetKeySpec(SecretKey key, Class<?> keySpec) private SecretKeygenerateKeyFromBits(byte[] bits, SymmetricKey.Type keyType) static voidprivate static PBEKeyGenParams
-
Field Details
-
alg
-
token
-
-
Constructor Details
-
JSSSecretKeyFactorySpi
-
-
Method Details
-
generateKeyFromBits
private SecretKey generateKeyFromBits(byte[] bits, SymmetricKey.Type keyType) throws NoSuchAlgorithmException, TokenException, InvalidKeySpecException, InvalidAlgorithmParameterException -
makePBEKeyGenParams
- Throws:
InvalidKeySpecException
-
engineGenerateSecret
- Specified by:
engineGenerateSecretin classSecretKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineGetKeySpec
- Specified by:
engineGetKeySpecin classSecretKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineTranslateKey
- Specified by:
engineTranslateKeyin classSecretKeyFactorySpi- Throws:
InvalidKeyException
-
main
-