public class PKCS12KeyWithParameters extends PKCS12Key implements PBEKey
serialVersionUID| 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, getPasswordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPasswordgetAlgorithm, getEncoded, getFormatdestroy, isDestroyedpublic 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()
public int getIterationCount()
getIterationCount in interface PBEKeyCopyright © 2015–2019 The veraPDF Consortium. All rights reserved.