Package org.bouncycastle.cert.crmf
Class PKMACBuilder
java.lang.Object
org.bouncycastle.cert.crmf.PKMACBuilder
- All Implemented Interfaces:
PBEMacCalculatorProvider
-
Constructor Summary
ConstructorDescriptionPKMACBuilder
(PKMACValuesCalculator calculator) PKMACBuilder
(PKMACValuesCalculator calculator, int maxIterations) Create a PKMAC builder enforcing a ceiling on the maximum iteration count. -
Method Summary
Modifier and TypeMethodDescriptionbuild
(char[] password) get
(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm, char[] password) setIterationCount
(int iterationCount) setParameters
(org.bouncycastle.asn1.cmp.PBMParameter parameters) setSaltLength
(int saltLength) Set the salt length in octets.setSecureRandom
(SecureRandom random)
-
Constructor Details
-
PKMACBuilder
-
PKMACBuilder
Create a PKMAC builder enforcing a ceiling on the maximum iteration count.- Parameters:
calculator
- supporting calculatormaxIterations
- max allowable value for iteration count.
-
-
Method Details
-
setSaltLength
Set the salt length in octets.- Parameters:
saltLength
- length in octets of the salt to be generated.- Returns:
- the generator
-
setIterationCount
-
setSecureRandom
-
setParameters
-
get
public MacCalculator get(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm, char[] password) throws OperatorCreationException - Specified by:
get
in interfacePBEMacCalculatorProvider
- Throws:
OperatorCreationException
-
build
- Throws:
CRMFException
-