|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PBEKey
Interface to a password-derived key for password-based encryption
(PBE). Applications working with a SecretKey
that is known to be a password-based key can safely cast such keys to
this interface.
Field Summary | |
---|---|
static long |
serialVersionUID
Compatible with JDK1.4. |
Method Summary | |
---|---|
int |
getIterationCount()
Retruns the iteration count, or 0 if not specified. |
char[] |
getPassword()
Returns a copy of the password as a character array. |
byte[] |
getSalt()
Returns a copy of the salt. |
Methods inherited from interface java.security.Key |
---|
getAlgorithm, getEncoded, getFormat |
Field Detail |
---|
static final long serialVersionUID
Method Detail |
---|
int getIterationCount()
char[] getPassword()
Although it is not specified in the documentation, implementations should not copy or clone the password array, but rather return the reference to the array itself, so the caller has the ability to erase the password.
byte[] getSalt()
Although it is not specified in the documentation, implementations should not copy or clone the salt array, but rather return the reference to the array itself, so the caller has the ability to erase the salt.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |