org.bouncycastle.cert.crmf
Class PKMACBuilder
java.lang.Object
|
+--org.bouncycastle.cert.crmf.PKMACBuilder
- public class PKMACBuilder
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PKMACBuilder
public PKMACBuilder(PKMACValuesCalculator calculator)
PKMACBuilder
public PKMACBuilder(PKMACValuesCalculator calculator,
int maxIterations)
- Create a PKMAC builder enforcing a ceiling on the maximum iteration count.
- Parameters:
calculator
- supporting calculatormaxIterations
- max allowable value for iteration count.
setSaltLength
public PKMACBuilder setSaltLength(int saltLength)
- Set the salt length in octets.
- Parameters:
saltLength
- length in octets of the salt to be generated.- Returns:
- the generator
setIterationCount
public PKMACBuilder setIterationCount(int iterationCount)
setSecureRandom
public PKMACBuilder setSecureRandom(java.security.SecureRandom random)
setParameters
public PKMACBuilder setParameters(org.bouncycastle.asn1.cmp.PBMParameter parameters)
build
public org.bouncycastle.operator.MacCalculator build(char[] password)
throws CRMFException