Class BCPBEKey
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.symmetric.util.BCPBEKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,javax.crypto.interfaces.PBEKey,javax.crypto.SecretKey,javax.security.auth.Destroyable
public class BCPBEKey extends java.lang.Object implements javax.crypto.interfaces.PBEKey, javax.security.auth.Destroyable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()intgetIterationCount()intgetIvSize()ASN1ObjectIdentifiergetOID()CipherParametersgetParam()char[]getPassword()byte[]getSalt()booleanisDestroyed()voidsetTryWrongPKCS12Zero(boolean tryWrong)
-
-
-
Constructor Detail
-
BCPBEKey
public BCPBEKey(java.lang.String algorithm, ASN1ObjectIdentifier oid, int type, int digest, int keySize, int ivSize, javax.crypto.spec.PBEKeySpec pbeKeySpec, CipherParameters param)- Parameters:
param-
-
BCPBEKey
public BCPBEKey(java.lang.String algName, CipherParameters param)
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
getIvSize
public int getIvSize()
-
getParam
public CipherParameters getParam()
-
getPassword
public char[] getPassword()
- Specified by:
getPasswordin interfacejavax.crypto.interfaces.PBEKey
-
getSalt
public byte[] getSalt()
- Specified by:
getSaltin interfacejavax.crypto.interfaces.PBEKey
-
getIterationCount
public int getIterationCount()
- Specified by:
getIterationCountin interfacejavax.crypto.interfaces.PBEKey
-
getOID
public ASN1ObjectIdentifier getOID()
-
setTryWrongPKCS12Zero
public void setTryWrongPKCS12Zero(boolean tryWrong)
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.security.auth.Destroyable
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyedin interfacejavax.security.auth.Destroyable
-
-