Class BaseSecretKeyFactory
- java.lang.Object
-
- javax.crypto.SecretKeyFactorySpi
-
- org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory
-
- All Implemented Interfaces:
PBE
- Direct Known Subclasses:
AES.KeyFactory
,ARIA.KeyFactory
,Camellia.KeyFactory
,DES.DESPBEKeyFactory
,DES.KeyFactory
,DESede.KeyFactory
,OpenSSLPBKDF.PBKDF
,PBEPBKDF2.BasePBKDF2
,PBESecretKeyFactory
,SCRYPT.BasePBKDF2
,SEED.KeyFactory
,TLSKDF.TLSKeyMaterialFactory
public class BaseSecretKeyFactory extends SecretKeyFactorySpi implements PBE
-
-
Field Summary
Fields Modifier and Type Field Description protected String
algName
protected ASN1ObjectIdentifier
algOid
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseSecretKeyFactory(String algName, ASN1ObjectIdentifier algOid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecretKey
engineGenerateSecret(KeySpec keySpec)
protected KeySpec
engineGetKeySpec(SecretKey key, Class keySpec)
protected SecretKey
engineTranslateKey(SecretKey key)
-
-
-
Field Detail
-
algName
protected String algName
-
algOid
protected ASN1ObjectIdentifier algOid
-
-
Constructor Detail
-
BaseSecretKeyFactory
protected BaseSecretKeyFactory(String algName, ASN1ObjectIdentifier algOid)
-
-
Method Detail
-
engineGenerateSecret
protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
- Specified by:
engineGenerateSecret
in classSecretKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGetKeySpec
protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException
- Specified by:
engineGetKeySpec
in classSecretKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineTranslateKey
protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException
- Specified by:
engineTranslateKey
in classSecretKeyFactorySpi
- Throws:
InvalidKeyException
-
-