| java.lang.Object | |
| ↳ | javax.crypto.spec.PBEKeySpec |
The key specification for a password based encryption key.
Password based encryption is described in PKCS #5.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
PBEKeySpec with the specified password. | |||||||||||
Creates a new
PBEKeySpec with the specified password, salt,
iteration count and the desired length of the derived key. | |||||||||||
Creates a new
PBEKeySpec with the specified password, salt
and iteration count. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Clears the password by overwriting it.
| |||||||||||
Returns the iteration count of this key specification.
| |||||||||||
Returns the desired key length of the derived key.
| |||||||||||
Returns a copy of the password of this key specification.
| |||||||||||
Returns a copy of the salt of this key specification.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
Creates a new PBEKeySpec with the specified password.
| password | the password. |
|---|
Creates a new PBEKeySpec with the specified password, salt,
iteration count and the desired length of the derived key.
| password | the password. |
|---|---|
| salt | the salt. |
| iterationCount | the iteration count. |
| keyLength | the desired key length of the derived key, |
| NullPointerException | if the salt is null. |
|---|---|
| IllegalArgumentException | if the salt is empty, iteration count is zero or negative or the key length is zero or negative. |
Creates a new PBEKeySpec with the specified password, salt
and iteration count.
| password | the password. |
|---|---|
| salt | the salt. |
| iterationCount | the iteration count. |
| NullPointerException | if salt is null. |
|---|---|
| IllegalArgumentException | if the salt is empty or iteration count is zero or negative. |
Clears the password by overwriting it.
Returns the iteration count of this key specification.
Returns the desired key length of the derived key.
Returns a copy of the password of this key specification.
| IllegalStateException | if the password has been cleared before. |
|---|
Returns a copy of the salt of this key specification.