public class BCPBEKey
extends java.lang.Object
implements javax.crypto.interfaces.PBEKey, javax.security.auth.Destroyable
Constructor and Description |
---|
BCPBEKey(java.lang.String algorithm,
ASN1ObjectIdentifier oid,
int type,
int digest,
int keySize,
int ivSize,
javax.crypto.spec.PBEKeySpec pbeKeySpec,
CipherParameters param) |
BCPBEKey(java.lang.String algName,
CipherParameters param) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
int |
getIterationCount() |
int |
getIvSize() |
ASN1ObjectIdentifier |
getOID() |
CipherParameters |
getParam() |
char[] |
getPassword() |
byte[] |
getSalt() |
boolean |
isDestroyed() |
void |
setTryWrongPKCS12Zero(boolean tryWrong) |
public BCPBEKey(java.lang.String algorithm, ASN1ObjectIdentifier oid, int type, int digest, int keySize, int ivSize, javax.crypto.spec.PBEKeySpec pbeKeySpec, CipherParameters param)
param
- public BCPBEKey(java.lang.String algName, CipherParameters param)
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
public int getIvSize()
public CipherParameters getParam()
public char[] getPassword()
getPassword
in interface javax.crypto.interfaces.PBEKey
public byte[] getSalt()
getSalt
in interface javax.crypto.interfaces.PBEKey
public int getIterationCount()
getIterationCount
in interface javax.crypto.interfaces.PBEKey
public ASN1ObjectIdentifier getOID()
public void setTryWrongPKCS12Zero(boolean tryWrong)
public void destroy()
destroy
in interface javax.security.auth.Destroyable
public boolean isDestroyed()
isDestroyed
in interface javax.security.auth.Destroyable