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

PBES2Parameters

public class PBES2Parameters extends org.bouncycastle.asn1.ASN1Encodable implements PKCSObjectIdentifiers

Fields Summary
private KeyDerivationFunc
func
private EncryptionScheme
scheme
Constructors Summary
public PBES2Parameters(org.bouncycastle.asn1.ASN1Sequence obj)

        Enumeration e = obj.getObjects();
        ASN1Sequence  funcSeq = (ASN1Sequence)e.nextElement();

        if (funcSeq.getObjectAt(0).equals(id_PBKDF2))
        {
            func = new KeyDerivationFunc(id_PBKDF2, PBKDF2Params.getInstance(funcSeq.getObjectAt(1)));
        }
        else
        {
            func = new KeyDerivationFunc(funcSeq);
        }

        scheme = new EncryptionScheme((ASN1Sequence)e.nextElement());
    
Methods Summary
public EncryptionSchemegetEncryptionScheme()

        return scheme;
    
public KeyDerivationFuncgetKeyDerivationFunc()

        return func;
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()

        ASN1EncodableVector  v = new ASN1EncodableVector();

        v.add(func);
        v.add(scheme);

        return new DERSequence(v);