java.io.Serializable, java.security.Key, javax.crypto.interfaces.PBEKey, javax.crypto.SecretKey, javax.security.auth.Destroyable, PBKDFKeypublic class PKCS12KeyWithParameters extends PKCS12Key implements javax.crypto.interfaces.PBEKey
| Constructor | 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 | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithm, 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