Class SHA1.BasePBKDF2WithHmacSHA1
- java.lang.Object
-
- javax.crypto.SecretKeyFactorySpi
-
- org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory
-
- org.bouncycastle.jcajce.provider.digest.SHA1.BasePBKDF2WithHmacSHA1
-
- All Implemented Interfaces:
PBE
- Direct Known Subclasses:
SHA1.PBKDF2WithHmacSHA18BIT,SHA1.PBKDF2WithHmacSHA1UTF8
- Enclosing class:
- SHA1
public static class SHA1.BasePBKDF2WithHmacSHA1 extends BaseSecretKeyFactory
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory
algName, algOid
-
Fields inherited from interface org.bouncycastle.jcajce.provider.symmetric.util.PBE
MD5, OPENSSL, PKCS12, PKCS5S1, PKCS5S1_UTF8, PKCS5S2, PKCS5S2_UTF8, SHA1, SHA256
-
-
Constructor Summary
Constructors Constructor Description BasePBKDF2WithHmacSHA1(String name, int scheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecretKeyengineGenerateSecret(KeySpec keySpec)Generate a secret key from the specified key specification.-
Methods inherited from class org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory
engineGetKeySpec, engineTranslateKey
-
-
-
-
Constructor Detail
-
BasePBKDF2WithHmacSHA1
public BasePBKDF2WithHmacSHA1(String name, int scheme)
-
-
Method Detail
-
engineGenerateSecret
protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
Description copied from class:SecretKeyFactorySpiGenerate a secret key from the specified key specification.- Overrides:
engineGenerateSecretin classBaseSecretKeyFactory- Parameters:
keySpec- the key specification.- Returns:
- a secret key.
- Throws:
InvalidKeySpecException- if the specified key specification cannot be used to generate a secret key.
-
-