| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final AlgorithmIdentifier | |
| public static final AlgorithmIdentifier | PRF_SHA1
AlgorithmIdentifier for a PRF using HMac with SHA-1 |
| public static final AlgorithmIdentifier | PRF_SHA256
AlgorithmIdentifier for a PRF using HMac with SHA-256 |
| public static final AlgorithmIdentifier | PRF_SHA512
AlgorithmIdentifier for a PRF using HMac with SHA-512 |
| private static final Map | PRFS_SALT
AlgorithmIdentifier for a PRF using SHA3-512 |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public AlgorithmIdentifier | |
| public int | |
| pack-priv static int |
| iterationCount | back to summary |
|---|---|
| private final int iterationCount | |
| prf | back to summary |
|---|---|
| private final AlgorithmIdentifier prf | |
| PRF_SHA1 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA1 AlgorithmIdentifier for a PRF using HMac with SHA-1 | |
| PRF_SHA256 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA256 AlgorithmIdentifier for a PRF using HMac with SHA-256 | |
| PRF_SHA512 | back to summary |
|---|---|
| public static final AlgorithmIdentifier PRF_SHA512 AlgorithmIdentifier for a PRF using HMac with SHA-512 | |
| PRFS_SALT | back to summary |
|---|---|
| private static final Map<K, V> PRFS_SALT AlgorithmIdentifier for a PRF using SHA3-512 | |
| saltLength | back to summary |
|---|---|
| private final int saltLength | |
| PBKDF2Config | back to summary |
|---|---|
| private PBKDF2Config(PBKDF2Config. | |
| getIterationCount | back to summary |
|---|---|
| public int getIterationCount() | |
| getPRF | back to summary |
|---|---|
| public AlgorithmIdentifier getPRF() | |
| getSaltLength | back to summary |
|---|---|
| public int getSaltLength() | |
| getSaltSize | back to summary |
|---|---|
| pack-priv static int getSaltSize(ASN1ObjectIdentifier algorithm) | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private AlgorithmIdentifier | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PBKDF2Config | |
| public PBKDF2Config. | Returns: the current builder.the iteration count to apply to the key creation. iterationCount)Set the iteration count for the PBE calculation. |
| public PBKDF2Config. | Returns: the current builder.algorithm id for PRF. prf)Set the PRF to use for key generation. |
| public PBKDF2Config. | Returns: the current builder.the length of the salt (in octets) to use. saltLength)Set the length of the salt to use. |
| iterationCount | back to summary |
|---|---|
| private int iterationCount | |
| prf | back to summary |
|---|---|
| private AlgorithmIdentifier prf | |
| saltLength | back to summary |
|---|---|
| private int saltLength | |
| Builder | back to summary |
|---|---|
| public Builder() Base constructor. This configures the builder to use an iteration count of 1024, and the HMacSHA1 PRF. | |
| build | back to summary |
|---|---|
| public PBKDF2Config build() | |
| withIterationCount | back to summary |
|---|---|
| public PBKDF2Config. Set the iteration count for the PBE calculation.
| |
| withPRF | back to summary |
|---|---|
| public PBKDF2Config. Set the PRF to use for key generation. By default this is HmacSHA1.
| |
| withSaltLength | back to summary |
|---|---|
| public PBKDF2Config. Set the length of the salt to use.
| |