Package org.bouncycastle.crypto.util

## Class ScryptConfig.Builder

- java.lang.Object
- - org.bouncycastle.crypto.util.ScryptConfig.Builder

- Enclosing class:
    ScryptConfig

      public static class ScryptConfig.Builder
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Builder​(int costParameter, int blockSize, int parallelizationParameter)` | Base constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ScryptConfig` | `build()` |
    `ScryptConfig.Builder` | `withSaltLength​(int saltLength)` | Set the length of the salt to use.

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

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

- - ### Constructor Detail

    - #### Builder

          public Builder​(int costParameter,
                         int blockSize,
                         int parallelizationParameter)

      Base constructor.
      Parameters:
        `costParameter` - cost parameter (must be a power of 2)
        `blockSize` - block size
        `parallelizationParameter` - parallelization parameter

  - ### Method Detail

    - #### withSaltLength

          public ScryptConfig.Builder withSaltLength​(int saltLength)

      Set the length of the salt to use.
      Parameters:
        `saltLength` - the length of the salt (in octets) to use.
      Returns:
        the current builder.

    - #### build

          public ScryptConfig build()