|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.crypto.spec.PBEKeySpec
public class PBEKeySpec
A wrapper for a password-based key, used for password-based encryption (PBE).
Examples of password-based encryption algorithms include:
SecretKeyFactory,
PBEParameterSpec| Constructor Summary | |
|---|---|
PBEKeySpec(char[] password)
Create a new PBE key spec with just a password. |
|
PBEKeySpec(char[] password,
byte[] salt,
int iterationCount)
Create a PBE key spec with a password, salt, and iteration count. |
|
PBEKeySpec(char[] password,
byte[] salt,
int iterationCount,
int keyLength)
Create a PBE key spec with a password, salt, iteration count, and key length. |
|
| Method Summary | |
|---|---|
void |
clearPassword()
Clear the password array by filling it with null characters. |
int |
getIterationCount()
Get the iteration count, or 0 if it has not been specified. |
int |
getKeyLength()
Get the generated key length, or 0 if it has not been specified. |
char[] |
getPassword()
Get the password character array. |
byte[] |
getSalt()
Get the salt bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PBEKeySpec(char[] password)
password - The password char array.
public PBEKeySpec(char[] password,
byte[] salt,
int iterationCount)
password - The password char array.salt - The salt bytes.iterationCount - The iteration count.
public PBEKeySpec(char[] password,
byte[] salt,
int iterationCount,
int keyLength)
password - The password char array.salt - The salt bytes.iterationCount - The iteration count.keyLength - The generated key length.| Method Detail |
|---|
public final void clearPassword()
public final int getIterationCount()
public final int getKeyLength()
public final char[] getPassword()
public final byte[] getSalt()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||