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 TypeMethodDescriptionvoiddestroy()byte[]intintgetOID()getParam()char[]byte[]getSalt()booleanvoidsetTryWrongPKCS12Zero(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:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getIvSize
public int getIvSize() -
getParam
-
getPassword
public char[] getPassword()- Specified by:
getPasswordin interfacePBEKey
-
getSalt
public byte[] getSalt() -
getIterationCount
public int getIterationCount()- Specified by:
getIterationCountin interfacePBEKey
-
getOID
-
setTryWrongPKCS12Zero
public void setTryWrongPKCS12Zero(boolean tryWrong) -
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-