public class PBKDF2Key extends Object implements PBKDFKey
serialVersionUID
Constructor and Description |
---|
PBKDF2Key(char[] password,
org.bouncycastle.crypto.CharToByteConverter converter)
Basic constructor for a password based key using PBKDF - secret key generation parameters will be passed separately..
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Return the password based key derivation function this key is for,
|
byte[] |
getEncoded()
Return the password converted to bytes.
|
String |
getFormat()
Return the format encoding.
|
char[] |
getPassword()
Return a reference to the char[] array holding the password.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, isDestroyed
public PBKDF2Key(char[] password, org.bouncycastle.crypto.CharToByteConverter converter)
password
- password to use.public char[] getPassword()
public String getAlgorithm()
getAlgorithm
in interface Key
public String getFormat()
public byte[] getEncoded()
getEncoded
in interface Key
Copyright © 2017 BouncyCastle.org. All rights reserved.