public class BCPBEKey extends Object implements PBEKey, Destroyable
serialVersionUID
Constructor and Description |
---|
BCPBEKey(String algorithm,
ASN1ObjectIdentifier oid,
int type,
int digest,
int keySize,
int ivSize,
PBEKeySpec pbeKeySpec,
CipherParameters param) |
BCPBEKey(String algName,
CipherParameters param) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
String |
getAlgorithm() |
byte[] |
getEncoded() |
String |
getFormat() |
int |
getIterationCount() |
int |
getIvSize() |
ASN1ObjectIdentifier |
getOID() |
CipherParameters |
getParam() |
char[] |
getPassword() |
byte[] |
getSalt() |
boolean |
isDestroyed() |
void |
setTryWrongPKCS12Zero(boolean tryWrong) |
public BCPBEKey(String algorithm, ASN1ObjectIdentifier oid, int type, int digest, int keySize, int ivSize, PBEKeySpec pbeKeySpec, CipherParameters param)
param
- public BCPBEKey(String algName, CipherParameters param)
public String getAlgorithm()
getAlgorithm
in interface Key
public byte[] getEncoded()
getEncoded
in interface Key
public int getIvSize()
public CipherParameters getParam()
public char[] getPassword()
getPassword
in interface PBEKey
public int getIterationCount()
getIterationCount
in interface PBEKey
public ASN1ObjectIdentifier getOID()
public void setTryWrongPKCS12Zero(boolean tryWrong)
public void destroy()
destroy
in interface Destroyable
public boolean isDestroyed()
isDestroyed
in interface Destroyable
Copyright © 2021 BouncyCastle.org. All rights reserved.