Bouncy Castle Cryptography 1.47

org.bouncycastle.jcajce.provider.symmetric.util
Class BaseSecretKeyFactory

java.lang.Object
  extended by javax.crypto.SecretKeyFactorySpi
      extended by org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory
All Implemented Interfaces:
PBE
Direct Known Subclasses:
BaseSecretKeyFactory.DES, BaseSecretKeyFactory.DESPBEKeyFactory, DES.KeyFactory, DESede.KeyFactory, PBESecretKeyFactory

public class BaseSecretKeyFactory
extends javax.crypto.SecretKeyFactorySpi
implements PBE


Nested Class Summary
static class BaseSecretKeyFactory.DES
           
static class BaseSecretKeyFactory.DESPBEKeyFactory
           
 
Nested classes/interfaces inherited from interface org.bouncycastle.jcajce.provider.symmetric.util.PBE
PBE.Util
 
Field Summary
protected  java.lang.String algName
           
protected  DERObjectIdentifier algOid
           
 
Fields inherited from interface org.bouncycastle.jcajce.provider.symmetric.util.PBE
MD2, MD5, OPENSSL, PKCS12, PKCS5S1, PKCS5S2, RIPEMD160, SHA1, SHA256, TIGER
 
Constructor Summary
protected BaseSecretKeyFactory(java.lang.String algName, DERObjectIdentifier algOid)
           
 
Method Summary
protected  javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec keySpec)
           
protected  java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey key, java.lang.Class keySpec)
           
protected  javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algName

protected java.lang.String algName

algOid

protected DERObjectIdentifier algOid
Constructor Detail

BaseSecretKeyFactory

protected BaseSecretKeyFactory(java.lang.String algName,
                               DERObjectIdentifier algOid)
Method Detail

engineGenerateSecret

protected javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec keySpec)
                                               throws java.security.spec.InvalidKeySpecException
Specified by:
engineGenerateSecret in class javax.crypto.SecretKeyFactorySpi
Throws:
java.security.spec.InvalidKeySpecException

engineGetKeySpec

protected java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey key,
                                                      java.lang.Class keySpec)
                                               throws java.security.spec.InvalidKeySpecException
Specified by:
engineGetKeySpec in class javax.crypto.SecretKeyFactorySpi
Throws:
java.security.spec.InvalidKeySpecException

engineTranslateKey

protected javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey key)
                                             throws java.security.InvalidKeyException
Specified by:
engineTranslateKey in class javax.crypto.SecretKeyFactorySpi
Throws:
java.security.InvalidKeyException

Bouncy Castle Cryptography 1.47