Class BCPBEKey
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.symmetric.util.BCPBEKey
-
- All Implemented Interfaces:
Serializable
,Key
,PBEKey
,SecretKey
,Destroyable
public class BCPBEKey extends Object implements PBEKey, Destroyable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface javax.crypto.interfaces.PBEKey
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description BCPBEKey(String algorithm, ASN1ObjectIdentifier oid, int type, int digest, int keySize, int ivSize, PBEKeySpec pbeKeySpec, CipherParameters param)
BCPBEKey(String algName, CipherParameters param)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
BCPBEKey
public BCPBEKey(String algorithm, ASN1ObjectIdentifier oid, int type, int digest, int keySize, int ivSize, PBEKeySpec pbeKeySpec, CipherParameters param)
- Parameters:
param
-
-
BCPBEKey
public BCPBEKey(String algName, CipherParameters param)
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceKey
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
-
getIvSize
public int getIvSize()
-
getParam
public CipherParameters getParam()
-
getPassword
public char[] getPassword()
- Specified by:
getPassword
in interfacePBEKey
-
getIterationCount
public int getIterationCount()
- Specified by:
getIterationCount
in interfacePBEKey
-
getOID
public ASN1ObjectIdentifier getOID()
-
setTryWrongPKCS12Zero
public void setTryWrongPKCS12Zero(boolean tryWrong)
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceDestroyable
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyed
in interfaceDestroyable
-
-