FileDocCategorySizeDatePackage
PBKDF2Params.javaAPI DocAzureus 3.0.3.41900Tue Jun 08 05:12:58 BST 2004org.bouncycastle.asn1.pkcs

PBKDF2Params

public class PBKDF2Params extends KeyDerivationFunc

Fields Summary
org.bouncycastle.asn1.DERObjectIdentifier
id
org.bouncycastle.asn1.ASN1OctetString
octStr
org.bouncycastle.asn1.DERInteger
iterationCount
org.bouncycastle.asn1.DERInteger
keyLength
Constructors Summary
PBKDF2Params(org.bouncycastle.asn1.ASN1Sequence seq)

        super(seq);

        Enumeration e = seq.getObjects();

        id = (DERObjectIdentifier)e.nextElement();

        ASN1Sequence  params = (ASN1Sequence)e.nextElement();

        e = params.getObjects();

        octStr = (ASN1OctetString)e.nextElement();
        iterationCount = (DERInteger)e.nextElement();

        if (e.hasMoreElements())
        {
            keyLength = (DERInteger)e.nextElement();
        }
        else
        {
            keyLength = null;
        }
    
Methods Summary
public org.bouncycastle.asn1.DERObjectgetDERObject()

        ASN1EncodableVector  v = new ASN1EncodableVector();
        ASN1EncodableVector  subV = new ASN1EncodableVector();

        v.add(id);
        subV.add(octStr);
        subV.add(iterationCount);

        if (keyLength != null)
        {
            subV.add(keyLength);
        }

        v.add(new DERSequence(subV));

        return new DERSequence(v);
    
public java.math.BigIntegergetIterationCount()

        return iterationCount.getValue();
    
public java.math.BigIntegergetKeyLength()

        if (keyLength != null)
        {
            return keyLength.getValue();
        }

        return null;
    
public byte[]getSalt()

        return octStr.getOctets();