public class PKCS12Key extends Object implements PBKDFKey
serialVersionUID
Constructor and Description |
---|
PKCS12Key(char[] password)
Basic constructor for a password based key - secret key generation parameters will be passed separately..
|
PKCS12Key(char[] password,
boolean useWrongZeroLengthConversion)
Unfortunately there seems to be some confusion about how to handle zero length
passwords.
|
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 PKCS12Key(char[] password)
password
- password to use.public PKCS12Key(char[] password, boolean useWrongZeroLengthConversion)
password
- password to use.useWrongZeroLengthConversion
- use the incorrect encoding approach (add pad bytes)public char[] getPassword()
public String getAlgorithm()
getAlgorithm
in interface Key
public String getFormat()
public byte[] getEncoded()
getEncoded
in interface Key
Copyright © 2018 BouncyCastle.org. All rights reserved.