Class DES.DESPBEKeyFactory
java.lang.Object
javax.crypto.SecretKeyFactorySpi
org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory
org.bouncycastle.jcajce.provider.symmetric.DES.DESPBEKeyFactory
- All Implemented Interfaces:
PBE
- Direct Known Subclasses:
DES.PBEWithMD5KeyFactory,DES.PBEWithSHA1KeyFactory,DESede.PBEWithSHAAndDES2KeyFactory,DESede.PBEWithSHAAndDES3KeyFactory
- Enclosing class:
- DES
public static class DES.DESPBEKeyFactory extends BaseSecretKeyFactory
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory
algName, algOidFields 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 DESPBEKeyFactory(String algorithm, ASN1ObjectIdentifier oid, boolean forCipher, int scheme, int digest, int keySize, int ivSize) -
Method Summary
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 Details
-
DESPBEKeyFactory
public DESPBEKeyFactory(String algorithm, ASN1ObjectIdentifier oid, boolean forCipher, int scheme, int digest, int keySize, int ivSize)
-
-
Method Details
-
engineGenerateSecret
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.
-