Package org.bouncycastle.jcajce.provider.symmetric

## Class PBEPBKDF2.BasePBKDF2

- java.lang.Object
- - javax.crypto.SecretKeyFactorySpi
  - - org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory
    - - org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2

- All Implemented Interfaces:
    `PBE`
  Direct Known Subclasses:
    `PBEPBKDF2.PBKDF2with8BIT`, `PBEPBKDF2.PBKDF2withGOST3411`, `PBEPBKDF2.PBKDF2withSHA224`, `PBEPBKDF2.PBKDF2withSHA256`, `PBEPBKDF2.PBKDF2withSHA3_224`, `PBEPBKDF2.PBKDF2withSHA3_256`, `PBEPBKDF2.PBKDF2withSHA3_384`, `PBEPBKDF2.PBKDF2withSHA3_512`, `PBEPBKDF2.PBKDF2withSHA384`, `PBEPBKDF2.PBKDF2withSHA512`, `PBEPBKDF2.PBKDF2withSM3`, `PBEPBKDF2.PBKDF2withUTF8`
  Enclosing class:
    PBEPBKDF2

      public static class PBEPBKDF2.BasePBKDF2
      extends BaseSecretKeyFactory

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.bouncycastle.jcajce.provider.symmetric.util.PBE

      `PBE.Util`

  - ### 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

      `GOST3411, MD2, MD5, OPENSSL, PKCS12, PKCS5S1, PKCS5S1_UTF8, PKCS5S2, PKCS5S2_UTF8, RIPEMD160, SHA1, SHA224, SHA256, SHA3_224, SHA3_256, SHA3_384, SHA3_512, SHA384, SHA512, SM3, TIGER`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `BasePBKDF2​(java.lang.String name, int scheme)` |
    `BasePBKDF2​(java.lang.String name, int scheme, int defaultDigest)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected javax.crypto.SecretKey` | `engineGenerateSecret​(java.security.spec.KeySpec keySpec)` |

    - ### Methods inherited from class org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory

      `engineGetKeySpec, engineTranslateKey`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasePBKDF2

          public BasePBKDF2​(java.lang.String name,
                            int scheme)

    - #### BasePBKDF2

          public BasePBKDF2​(java.lang.String name,
                            int scheme,
                            int defaultDigest)

  - ### Method Detail

    - #### engineGenerateSecret

          protected javax.crypto.SecretKey engineGenerateSecret​(java.security.spec.KeySpec keySpec)
                                                         throws java.security.spec.InvalidKeySpecException

      Overrides:
        `engineGenerateSecret` in class `BaseSecretKeyFactory`
      Throws:
        `java.security.spec.InvalidKeySpecException`