org.bouncycastle.jce.provider

Class JCESecretKeyFactory

Implemented Interfaces:
PBE
Known Direct Subclasses:
JCESecretKeyFactory.DES, JCESecretKeyFactory.DESede, JCESecretKeyFactory.DESPBEKeyFactory, JCESecretKeyFactory.PBEKeyFactory

public class JCESecretKeyFactory
extends SecretKeyFactorySpi
implements PBE

Nested Class Summary

static class
JCESecretKeyFactory.DES
static class
JCESecretKeyFactory.DESede
static class
JCESecretKeyFactory.DESPBEKeyFactory
static class
JCESecretKeyFactory.PBEKeyFactory
static class
JCESecretKeyFactory.PBEWithMD5And128BitAESCBCOpenSSL
PBEWithMD5And128BitAES-OpenSSL
static class
JCESecretKeyFactory.PBEWithMD5And192BitAESCBCOpenSSL
PBEWithMD5And128BitAES-OpenSSL
static class
JCESecretKeyFactory.PBEWithMD5And256BitAESCBCOpenSSL
PBEWithMD5And128BitAES-OpenSSL
static class
JCESecretKeyFactory.PBEWithMD5AndDES
PBEWithMD5AndDES
static class
JCESecretKeyFactory.PBEWithMD5AndRC2
PBEWithMD5AndRC2
static class
JCESecretKeyFactory.PBEWithRIPEMD160
PBEWithHmacRIPEMD160
static class
JCESecretKeyFactory.PBEWithSHA
PBEWithHmacSHA
static class
JCESecretKeyFactory.PBEWithSHA1AndDES
PBEWithSHA1AndDES
static class
JCESecretKeyFactory.PBEWithSHA1AndRC2
PBEWithSHA1AndRC2
static class
JCESecretKeyFactory.PBEWithSHA256And128BitAESBC
PBEWithSHA256And128BitAES-BC
static class
JCESecretKeyFactory.PBEWithSHA256And192BitAESBC
PBEWithSHA256And192BitAES-BC
static class
JCESecretKeyFactory.PBEWithSHA256And256BitAESBC
PBEWithSHA256And256BitAES-BC
static class
JCESecretKeyFactory.PBEWithSHAAnd128BitAESBC
PBEWithSHA1And128BitAES-BC
static class
JCESecretKeyFactory.PBEWithSHAAnd128BitRC2
PBEWithSHAAnd128BitRC2-CBC
static class
JCESecretKeyFactory.PBEWithSHAAnd128BitRC4
PBEWithSHAAnd128BitRC4
static class
JCESecretKeyFactory.PBEWithSHAAnd192BitAESBC
PBEWithSHA1And192BitAES-BC
static class
JCESecretKeyFactory.PBEWithSHAAnd256BitAESBC
PBEWithSHA1And256BitAES-BC
static class
JCESecretKeyFactory.PBEWithSHAAnd40BitRC2
PBEWithSHAAnd40BitRC2-CBC
static class
JCESecretKeyFactory.PBEWithSHAAnd40BitRC4
PBEWithSHAAnd40BitRC4
static class
JCESecretKeyFactory.PBEWithSHAAndDES2Key
PBEWithSHAAnd2-KeyTripleDES-CBC
static class
JCESecretKeyFactory.PBEWithSHAAndDES3Key
PBEWithSHAAnd3-KeyTripleDES-CBC
static class
JCESecretKeyFactory.PBEWithSHAAndIDEA
PBEWithSHAAndIDEA-CBC
static class
JCESecretKeyFactory.PBEWithSHAAndTwofish
PBEWithSHAAndTwofish-CBC
static class
JCESecretKeyFactory.PBEWithTiger
PBEWithHmacTiger

Field Summary

protected String
algName
protected DERObjectIdentifier
algOid

Fields inherited from interface org.bouncycastle.jce.provider.PBE

MD5, OPENSSL, PKCS12, PKCS5S1, PKCS5S2, RIPEMD160, SHA1, SHA256, TIGER

Constructor Summary

JCESecretKeyFactory(String algName, DERObjectIdentifier algOid)

Method Summary

protected SecretKey
engineGenerateSecret(KeySpec keySpec)
protected KeySpec
engineGetKeySpec(SecretKey key, Class keySpec)
protected SecretKey
engineTranslateKey(SecretKey key)

Field Details

algName

protected String algName

algOid

protected DERObjectIdentifier algOid

Constructor Details

JCESecretKeyFactory

protected JCESecretKeyFactory(String algName,
                              DERObjectIdentifier algOid)

Method Details

engineGenerateSecret

protected SecretKey engineGenerateSecret(KeySpec keySpec)
            throws InvalidKeySpecException

engineGetKeySpec

protected KeySpec engineGetKeySpec(SecretKey key,
                                   Class keySpec)
            throws InvalidKeySpecException

engineTranslateKey

protected SecretKey engineTranslateKey(SecretKey key)
            throws InvalidKeyException