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 class
static class
static class
static class
static class
Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static class
static class
static class
static class
Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static class
static class
Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static class
Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static class
Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.1.static class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionengineGenerateSecret
(KeySpec spec) engineGetKeySpec
(SecretKey key, Class<?> keySpec) private SecretKey
generateKeyFromBits
(byte[] bits, SymmetricKey.Type keyType) static void
private 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:
engineGenerateSecret
in classSecretKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGetKeySpec
- Specified by:
engineGetKeySpec
in classSecretKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineTranslateKey
- Specified by:
engineTranslateKey
in classSecretKeyFactorySpi
- Throws:
InvalidKeyException
-
main
-