Class PBKDF1Key
java.lang.Object
org.bouncycastle.jcajce.PBKDF1Key
- All Implemented Interfaces:
Serializable, Key, SecretKey, Destroyable, PBKDFKey
- Direct Known Subclasses:
PBKDF1KeyWithParameters
-
Field Summary
Fields inherited from interface SecretKey
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionPBKDF1Key(char[] password, CharToByteConverter converter) Basic constructor for a password based key with generation parameters for PBKDF1. -
Method Summary
Modifier and TypeMethodDescriptionReturn the password based key derivation function this key is for,byte[]Return the password converted to bytes.Return the format encoding.char[]Return a reference to the char[] array holding the password.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Destroyable
destroy, isDestroyed
-
Constructor Details
-
PBKDF1Key
Basic constructor for a password based key with generation parameters for PBKDF1.- Parameters:
password- password to use.converter- the converter to use to turn the char array into octets.
-
-
Method Details
-
getPassword
public char[] getPassword()Return a reference to the char[] array holding the password.- Returns:
- a reference to the password array.
-
getAlgorithm
Return the password based key derivation function this key is for,- Specified by:
getAlgorithmin interfaceKey- Returns:
- the string "PBKDF1"
-
getFormat
-
getEncoded
public byte[] getEncoded()Return the password converted to bytes.- Specified by:
getEncodedin interfaceKey- Returns:
- the password converted to a byte array.
-