org.bouncycastle.cert.crmf
Class PKMACBuilder
java.lang.Object
|
+--org.bouncycastle.cert.crmf.PKMACBuilder
- All Implemented Interfaces:
- PBEMacCalculatorProvider
- public class PKMACBuilder
- extends java.lang.Object
- implements PBEMacCalculatorProvider
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)
get
public MacCalculator get(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm,
char[] password)
throws OperatorCreationException
- Specified by:
get
in interface PBEMacCalculatorProvider
build
public MacCalculator build(char[] password)
throws CRMFException