FileDocCategorySizeDatePackage
PKCS12PBEParams.javaAPI DocAndroid 1.5 API1638Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.pkcs

PKCS12PBEParams

public class PKCS12PBEParams extends org.bouncycastle.asn1.ASN1Encodable

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 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();
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()

        ASN1EncodableVector  v = new ASN1EncodableVector();

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

        return new DERSequence(v);