java.io.Serializable
, java.security.Key
, javax.crypto.SecretKey
, javax.security.auth.Destroyable
, PBKDFKey
PBKDF1KeyWithParameters
public 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.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key