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