|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.jcajce.PKCS12Key
A password based key for use with PKCS#12.
Field Summary |
Fields inherited from interface java.security.Key |
serialVersionUID |
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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)Method Detail |
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
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |