public class BCPBEKey extends Object implements PBEKey
serialVersionUID| Constructor and Description |
|---|
BCPBEKey(String algorithm,
ASN1ObjectIdentifier oid,
int type,
int digest,
int keySize,
int ivSize,
PBEKeySpec pbeKeySpec,
CipherParameters param) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Returns the name of the algorithm of this key.
|
byte[] |
getEncoded()
Returns the encoded form of this key, or
null if encoding is not
supported by this key. |
String |
getFormat()
Returns the name of the format used to encode this key, or
null
if it can not be encoded. |
int |
getIterationCount()
Returns the iteration count, 0 if not specified.
|
int |
getIvSize() |
ASN1ObjectIdentifier |
getOID() |
CipherParameters |
getParam() |
char[] |
getPassword()
Returns a copy to the password.
|
byte[] |
getSalt()
Returns a copy of the salt data or null if not specified.
|
void |
setTryWrongPKCS12Zero(boolean tryWrong) |
public BCPBEKey(String algorithm, ASN1ObjectIdentifier oid, int type, int digest, int keySize, int ivSize, PBEKeySpec pbeKeySpec, CipherParameters param)
param - public String getAlgorithm()
Keynull is returned.getAlgorithm in interface Keynull if the
algorithm is unknown.public String getFormat()
Keynull
if it can not be encoded.public byte[] getEncoded()
Keynull if encoding is not
supported by this key.getEncoded in interface Keynull if encoding is not
supported by this key.public int getIvSize()
public CipherParameters getParam()
public char[] getPassword()
PBEKeygetPassword in interface PBEKeypublic byte[] getSalt()
PBEKeypublic int getIterationCount()
PBEKeygetIterationCount in interface PBEKeypublic ASN1ObjectIdentifier getOID()
public void setTryWrongPKCS12Zero(boolean tryWrong)