| Modifier and Type | Field and Description |
|---|---|
| private static final AlgorithmIdentifier | |
| private AlgorithmIdentifier |
| Access | Constructor and Description |
|---|---|
| public | PBKDF2KeySpec(char[]
password. password, byte[] salt to use. salt, int iteration count for PBE algorithm. iterationCount, int keySize in bits. keySize)Base constructor with the default PRF. |
| public | PBKDF2KeySpec(char[]
password. password, byte[] salt to use. salt, int iteration count for PBE algorithm. iterationCount, int keySize in bits. keySize, DigestAlgorithm Algorithm identifying the PRF to use. prfAlgorithm)Constructor that allows specifying a PRF using an Algorithm. |
| public | PBKDF2KeySpec(char[]
password. password, byte[] salt to use. salt, int iteration count for PBE algorithm. iterationCount, int keySize in bits. keySize, AlgorithmIdentifier AlgorithmIdentifier for the PRF to use. prf)Constructor that allows specifying a PRF. |
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmIdentifier | |
| public boolean | Returns: true if this spec uses the default PRF, false otherwise.Return true if this spec is for the default PRF (HmacSHA1), false otherwise. |
| defaultPRF | back to summary |
|---|---|
| private static final AlgorithmIdentifier defaultPRF | |
| prf | back to summary |
|---|---|
| private AlgorithmIdentifier prf | |
| PBKDF2KeySpec | back to summary |
|---|---|
| public PBKDF2KeySpec(char[] password, byte[] salt, int iterationCount, int keySize) Base constructor with the default PRF.
| |
| PBKDF2KeySpec | back to summary |
|---|---|
| public PBKDF2KeySpec(char[] password, byte[] salt, int iterationCount, int keySize, DigestAlgorithm prfAlgorithm) Constructor that allows specifying a PRF using an Algorithm.
| |
| PBKDF2KeySpec | back to summary |
|---|---|
| public PBKDF2KeySpec(char[] password, byte[] salt, int iterationCount, int keySize, AlgorithmIdentifier prf) Constructor that allows specifying a PRF.
| |
| getPrf | back to summary |
|---|---|
| public AlgorithmIdentifier getPrf() Return an AlgorithmIdentifier representing the PRF.
| |
| isDefaultPrf | back to summary |
|---|---|
| public boolean isDefaultPrf() Return true if this spec is for the default PRF (HmacSHA1), false otherwise.
| |