public class PKCS12Key extends java.lang.Object implements PBKDFKey
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 |
---|---|
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 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 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