By default the class uses HMAC-SHA256 as the PRF, with an iteration count of 8192. The default salt length is the output size of the MAC being used.
| Modifier and Type | Field and Description |
|---|---|
| private static final DefaultMacAlgorithmIdentifierFinder | |
| private JcaJceHelper | |
| private int | |
| private int | |
| private AlgorithmIdentifier | |
| private PBKDF2Params | |
| private AlgorithmIdentifier | |
| public static final AlgorithmIdentifier | |
| public static final AlgorithmIdentifier | |
| public static final AlgorithmIdentifier | |
| public static final AlgorithmIdentifier | |
| public static final AlgorithmIdentifier | |
| public static final AlgorithmIdentifier | |
| public static final AlgorithmIdentifier | |
| public static final AlgorithmIdentifier | |
| private SecureRandom | |
| private byte[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | JcePBMac1CalculatorBuilder(String
name of the MAC algorithm. macAlgorithm, int the key size in bits. keySize)Base constructor - MAC name and key size. |
| public | JcePBMac1CalculatorBuilder(String
name of the MAC algorithm. macAlgorithm, int the key size in bits. keySize, MacAlgorithmIdentifierFinder an AlgorithmIdentifier finder containing the specified MAC name. algIdFinder)Base constructor - MAC name and key size with a custom AlgorithmIdentifier finder for the MAC algorithm. |
| public | JcePBMac1CalculatorBuilder(PBMAC1Params
the ASN.1 parameters for the MAC calculator we want to create. pbeMacParams)Base constructor from an ASN.1 parameter set. |
| Modifier and Type | Method and Description |
|---|---|
| public MacCalculator | |
| pack-priv JcePBMac1CalculatorBuilder | |
| public JcePBMac1CalculatorBuilder | |
| public JcePBMac1CalculatorBuilder | |
| public JcePBMac1CalculatorBuilder | |
| public JcePBMac1CalculatorBuilder | |
| public JcePBMac1CalculatorBuilder | |
| public JcePBMac1CalculatorBuilder | |
| public JcePBMac1CalculatorBuilder |
| defaultFinder | back to summary |
|---|---|
| private static final DefaultMacAlgorithmIdentifierFinder defaultFinder | |
| helper | back to summary |
|---|---|
| private JcaJceHelper helper | |
| iterationCount | back to summary |
|---|---|
| private int iterationCount | |
| keySize | back to summary |
|---|---|
| private int keySize | |
| macAlgorithm | back to summary |
|---|---|
| private AlgorithmIdentifier macAlgorithm | |
| pbeParams | back to summary |
|---|---|
| private PBKDF2Params pbeParams | |
| prf | back to summary |
|---|---|
| private AlgorithmIdentifier prf | |
| PRF_SHA224 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA224 | |
| PRF_SHA256 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA256 | |
| PRF_SHA384 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA384 | |
| PRF_SHA3_224 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA3_224 | |
| PRF_SHA3_256 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA3_256 | |
| PRF_SHA3_384 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA3_384 | |
| PRF_SHA3_512 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA3_512 | |
| PRF_SHA512 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA512 | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| salt | back to summary |
|---|---|
| private byte[] salt | |
| saltLength | back to summary |
|---|---|
| private int saltLength | |
| JcePBMac1CalculatorBuilder | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder(String macAlgorithm, int keySize) Base constructor - MAC name and key size.
| |
| JcePBMac1CalculatorBuilder | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder(String macAlgorithm, int keySize, MacAlgorithmIdentifierFinder algIdFinder) Base constructor - MAC name and key size with a custom AlgorithmIdentifier finder for the MAC algorithm.
| |
| JcePBMac1CalculatorBuilder | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder(PBMAC1Params pbeMacParams) Base constructor from an ASN.1 parameter set. See RFC 8108 for details.
| |
| build | back to summary |
|---|---|
| public MacCalculator build(final char[] password) throws OperatorCreationException | |
| setHelper | back to summary |
|---|---|
| pack-priv JcePBMac1CalculatorBuilder setHelper(JcaJceHelper helper) | |
| setIterationCount | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder setIterationCount(int iterationCount) | |
| setPrf | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder setPrf(AlgorithmIdentifier prf) | |
| setProvider | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder setProvider(Provider provider) | |
| setProvider | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder setProvider(String providerName) | |
| setRandom | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder setRandom(SecureRandom random) | |
| setSalt | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder setSalt(byte[] salt) | |
| setSaltLength | back to summary |
|---|---|
| public JcePBMac1CalculatorBuilder setSaltLength(int saltLength) Set the length of the salt in bytes. | |