java.io.Serializable, java.security.Key, javax.crypto.SecretKey, javax.security.auth.Destroyable, PBKDFKeyPBKDF1KeyWithParameterspublic class PBKDF1Key extends java.lang.Object implements PBKDFKey
| Constructor | Description |
|---|---|
PBKDF1Key(char[] password,
CharToByteConverter converter) |
Basic constructor for a password based key with generation parameters for PBKDF1.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAlgorithm() |
Return the password based key derivation function this key is for,
|
byte[] |
getEncoded() |
Return the password converted to bytes.
|
java.lang.String |
getFormat() |
Return the format encoding.
|
char[] |
getPassword() |
Return a reference to the char[] array holding the password.
|
public PBKDF1Key(char[] password,
CharToByteConverter converter)
password - password to use.converter - the converter to use to turn the char array into octets.public char[] getPassword()
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Key