public class PBKDF2KeySpec extends PBEKeySpec
| Constructor and Description |
|---|
PBKDF2KeySpec(char[] password,
byte[] salt,
int iterationCount,
int keySize,
AlgorithmIdentifier prf)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmIdentifier |
getPrf()
Return an AlgorithmIdentifier representing the PRF.
|
boolean |
isDefaultPrf()
Return true if this spec is for the default PRF (HmacSHA1), false otherwise.
|
clearPassword, getIterationCount, getKeyLength, getPassword, getSaltpublic PBKDF2KeySpec(char[] password,
byte[] salt,
int iterationCount,
int keySize,
AlgorithmIdentifier prf)
password - password to use as the seed of the PBE key generator.salt - salt to use in the generator,iterationCount - iteration count to use in the generator.keySize - size of the key to be generated (in bits).prf - identifier and parameters for the PRF algorithm to use.public boolean isDefaultPrf()
public AlgorithmIdentifier getPrf()
Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.