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

PKCS12PBEParams

public class PKCS12PBEParams extends Object implements org.bouncycastle.asn1.DEREncodable

Fields Summary
org.bouncycastle.asn1.DERInteger
iterations
org.bouncycastle.asn1.ASN1OctetString
iv
Constructors Summary
public PKCS12PBEParams(byte[] salt, int iterations)

        this.iv = new DEROctetString(salt);
        this.iterations = new DERInteger(iterations);
    
public PKCS12PBEParams(org.bouncycastle.asn1.ASN1Sequence seq)

        iv = (ASN1OctetString)seq.getObjectAt(0);
        iterations = (DERInteger)seq.getObjectAt(1);
    
Methods Summary
public org.bouncycastle.asn1.DERObjectgetDERObject()

        ASN1EncodableVector  v = new ASN1EncodableVector();

        v.add(iv);
        v.add(iterations);

        return new DERSequence(v);
    
public byte[]getIV()

        return iv.getOctets();
    
public static org.bouncycastle.asn1.pkcs.PKCS12PBEParamsgetInstance(java.lang.Object obj)

        if (obj instanceof PKCS12PBEParams)
        {
            return (PKCS12PBEParams)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new PKCS12PBEParams((ASN1Sequence)obj);
        }

        throw new IllegalArgumentException("unknown object in factory");
    
public java.math.BigIntegergetIterations()

        return iterations.getValue();