public class PKCS12KeyWithParameters extends PKCS12Key implements javax.crypto.interfaces.PBEKey
| Constructor and Description |
|---|
PKCS12KeyWithParameters(char[] password,
boolean useWrongZeroLengthConversion,
byte[] salt,
int iterationCount)
Basic constructor for a password based key with generation parameters, specifying the wrong conversion for
zero length passwords.
|
PKCS12KeyWithParameters(char[] password,
byte[] salt,
int iterationCount)
Basic constructor for a password based key with generation parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIterationCount()
Return the iteration count to use in the key derivation function.
|
byte[] |
getSalt()
Return the salt to use in the key derivation function.
|
getAlgorithm, getEncoded, getFormat, getPasswordpublic PKCS12KeyWithParameters(char[] password,
byte[] salt,
int iterationCount)
password - password to use.salt - salt for generation algorithmiterationCount - iteration count for generation algorithm.public PKCS12KeyWithParameters(char[] password,
boolean useWrongZeroLengthConversion,
byte[] salt,
int iterationCount)
password - password to use.salt - salt for generation algorithmiterationCount - iteration count for generation algorithm.useWrongZeroLengthConversion - use the incorrect encoding approach (add pad bytes)public byte[] getSalt()
getSalt in interface javax.crypto.interfaces.PBEKeypublic int getIterationCount()
getIterationCount in interface javax.crypto.interfaces.PBEKey