public static class ScryptConfig.Builder
extends java.lang.Object
Constructor | Description |
---|---|
Builder(int costParameter,
int blockSize,
int parallelizationParameter) |
Base constructor.
|
Modifier and Type | Method | Description |
---|---|---|
ScryptConfig |
build() |
|
ScryptConfig.Builder |
withSaltLength(int saltLength) |
Set the length of the salt to use.
|
public Builder(int costParameter, int blockSize, int parallelizationParameter)
costParameter
- cost parameter (must be a power of 2)blockSize
- block sizeparallelizationParameter
- parallelization parameterpublic ScryptConfig.Builder withSaltLength(int saltLength)
saltLength
- the length of the salt (in octets) to use.public ScryptConfig build()