public class PKMACBuilder extends Object
| Constructor and Description |
|---|
PKMACBuilder(PKMACValuesCalculator calculator) |
PKMACBuilder(PKMACValuesCalculator calculator,
int maxIterations)
Create a PKMAC builder enforcing a ceiling on the maximum iteration count.
|
| Modifier and Type | Method and Description |
|---|---|
MacCalculator |
build(char[] password) |
PKMACBuilder |
setIterationCount(int iterationCount) |
PKMACBuilder |
setParameters(PBMParameter parameters) |
PKMACBuilder |
setSaltLength(int saltLength)
Set the salt length in octets.
|
PKMACBuilder |
setSecureRandom(SecureRandom random) |
public PKMACBuilder(PKMACValuesCalculator calculator)
public PKMACBuilder(PKMACValuesCalculator calculator, int maxIterations)
calculator - supporting calculatormaxIterations - max allowable value for iteration count.public PKMACBuilder setSaltLength(int saltLength)
saltLength - length in octets of the salt to be generated.public PKMACBuilder setIterationCount(int iterationCount)
public PKMACBuilder setSecureRandom(SecureRandom random)
public PKMACBuilder setParameters(PBMParameter parameters)
public MacCalculator build(char[] password) throws CRMFException
CRMFExceptionCopyright © 2015. All rights reserved.