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, waitdestroy, isDestroyedpublic 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 Keypublic String getFormat()
public byte[] getEncoded()
getEncoded in interface KeyCopyright © 2015–2021 The veraPDF Consortium. All rights reserved.