org.bouncycastle.jce.provider
Class JCEPBEKey

java.lang.Object
  extended by org.bouncycastle.jce.provider.JCEPBEKey
All Implemented Interfaces:
java.io.Serializable, java.security.Key, javax.crypto.interfaces.PBEKey, javax.crypto.SecretKey

public class JCEPBEKey
extends java.lang.Object
implements javax.crypto.interfaces.PBEKey

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String algorithm
           
(package private)  int digest
           
(package private)  int ivSize
           
(package private)  int keySize
           
(package private)  DERObjectIdentifier oid
           
(package private)  CipherParameters param
           
(package private)  javax.crypto.spec.PBEKeySpec pbeKeySpec
           
(package private)  boolean tryWrong
           
(package private)  int type
           
 
Fields inherited from interface javax.crypto.interfaces.PBEKey
serialVersionUID
 
Constructor Summary
JCEPBEKey(java.lang.String algorithm, DERObjectIdentifier oid, int type, int digest, int keySize, int ivSize, javax.crypto.spec.PBEKeySpec pbeKeySpec, CipherParameters param)
           
 
Method Summary
 java.lang.String getAlgorithm()
           
(package private)  int getDigest()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 int getIterationCount()
           
(package private)  int getIvSize()
           
(package private)  int getKeySize()
           
 DERObjectIdentifier getOID()
           
(package private)  CipherParameters getParam()
           
 char[] getPassword()
           
 byte[] getSalt()
           
(package private)  int getType()
           
(package private)  void setTryWrongPKCS12Zero(boolean tryWrong)
           
(package private)  boolean shouldTryWrongPKCS12()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algorithm

java.lang.String algorithm

oid

DERObjectIdentifier oid

type

int type

digest

int digest

keySize

int keySize

ivSize

int ivSize

param

CipherParameters param

pbeKeySpec

javax.crypto.spec.PBEKeySpec pbeKeySpec

tryWrong

boolean tryWrong
Constructor Detail

JCEPBEKey

public JCEPBEKey(java.lang.String algorithm,
                 DERObjectIdentifier oid,
                 int type,
                 int digest,
                 int keySize,
                 int ivSize,
                 javax.crypto.spec.PBEKeySpec pbeKeySpec,
                 CipherParameters param)
Parameters:
param -
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key

getType

int getType()

getDigest

int getDigest()

getKeySize

int getKeySize()

getIvSize

int getIvSize()

getParam

CipherParameters getParam()

getPassword

public char[] getPassword()
Specified by:
getPassword in interface javax.crypto.interfaces.PBEKey

getSalt

public byte[] getSalt()
Specified by:
getSalt in interface javax.crypto.interfaces.PBEKey

getIterationCount

public int getIterationCount()
Specified by:
getIterationCount in interface javax.crypto.interfaces.PBEKey

getOID

public DERObjectIdentifier getOID()

setTryWrongPKCS12Zero

void setTryWrongPKCS12Zero(boolean tryWrong)

shouldTryWrongPKCS12

boolean shouldTryWrongPKCS12()