| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | PKCS12Key(char[]
password to use. password)Basic constructor for a password based key - secret key generation parameters will be passed separately.. |
| public | PKCS12Key(char[]
password to use. password, boolean use the incorrect encoding approach (add pad bytes) useWrongZeroLengthConversion)Unfortunately there seems to be some confusion about how to handle zero length passwords. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the string "PKCS12"Implements java. |
| public byte[] | Returns: the password converted to a byte array.Implements java. |
| public String | Returns: the string "PKCS12", representing the char[] to byte[] conversion.Implements java. |
| public char[] | Returns: a reference to the password array.Return a reference to the char[] array holding the password. |
| password | back to summary |
|---|---|
| private final char[] password | |
| useWrongZeroLengthConversion | back to summary |
|---|---|
| private final boolean useWrongZeroLengthConversion | |
| PKCS12Key | back to summary |
|---|---|
| public PKCS12Key(char[] password) Basic constructor for a password based key - secret key generation parameters will be passed separately..
| |
| PKCS12Key | back to summary |
|---|---|
| public PKCS12Key(char[] password, boolean useWrongZeroLengthConversion) Unfortunately there seems to be some confusion about how to handle zero length passwords.
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements java. Return the password based key derivation function this key is for,
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements java. Return the password converted to bytes.
| |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements java. Return the format encoding.
| |
| getPassword | back to summary |
|---|---|
| public char[] getPassword() Return a reference to the char[] array holding the password.
| |