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

PBES2Parameters

public class PBES2Parameters extends Object implements org.bouncycastle.asn1.DEREncodable, 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 PBKDF2Params(funcSeq);
        }
        else
        {
            func = new KeyDerivationFunc(funcSeq);
        }

        scheme = new EncryptionScheme((ASN1Sequence)e.nextElement());
    
Methods Summary
public org.bouncycastle.asn1.DERObjectgetDERObject()

        ASN1EncodableVector  v = new ASN1EncodableVector();

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

        return new DERSequence(v);
    
public EncryptionSchemegetEncryptionScheme()

        return scheme;
    
public KeyDerivationFuncgetKeyDerivationFunc()

        return func;