|
JSS 3.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mozilla.jss.crypto.PBEKeyGenParams
Field Summary | |
private static int |
DEFAULT_ITERATIONS
|
private static int |
DEFAULT_SALT_LENGTH
|
private int |
iterations
|
private Password |
pass
|
private byte[] |
salt
|
Constructor Summary | |
private |
PBEKeyGenParams()
|
|
PBEKeyGenParams(char[] pass,
byte[] salt,
int iterations)
Creates PBE parameters. |
|
PBEKeyGenParams(Password pass,
byte[] salt,
int iterations)
Creates PBE parameters. |
Method Summary | |
void |
clear()
Clears the password. |
protected void |
finalize()
|
int |
getIterations()
Returns the iteration count. |
Password |
getPassword()
Returns a reference to the password, not a copy. |
byte[] |
getSalt()
Returns a reference to the salt. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Password pass
private byte[] salt
private int iterations
private static final int DEFAULT_SALT_LENGTH
private static final int DEFAULT_ITERATIONS
Constructor Detail |
private PBEKeyGenParams()
public PBEKeyGenParams(Password pass, byte[] salt, int iterations)
pass
- The password. It will be cloned, so the
caller is still responsible for clearing it. It must not be null.salt
- The salt for the PBE algorithm. Will not be cloned.
Must not be null. It is the responsibility of the caller to
use the right salt length for the algorithm. Most algorithms
use 8 bytes of salt.public PBEKeyGenParams(char[] pass, byte[] salt, int iterations)
pass
- The password. It will be cloned, so the
caller is still responsible for clearing it. It must not be null.salt
- The salt for the PBE algorithm. Will not be cloned.
Must not be null. It is the responsibility of the caller to
use the right salt length for the algorithm. Most algorithms
use 8 bytes of salt.Method Detail |
public Password getPassword()
public byte[] getSalt()
public int getIterations()
public void clear()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
JSS 3.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |