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

CertBag

public class CertBag extends org.bouncycastle.asn1.ASN1Encodable

Fields Summary
org.bouncycastle.asn1.ASN1Sequence
seq
org.bouncycastle.asn1.DERObjectIdentifier
certId
org.bouncycastle.asn1.DERObject
certValue
Constructors Summary
public CertBag(org.bouncycastle.asn1.ASN1Sequence seq)

        this.seq = seq;
        this.certId = (DERObjectIdentifier)seq.getObjectAt(0);
        this.certValue = ((DERTaggedObject)seq.getObjectAt(1)).getObject();
    
public CertBag(org.bouncycastle.asn1.DERObjectIdentifier certId, org.bouncycastle.asn1.DERObject certValue)

        this.certId = certId;
        this.certValue = certValue;
    
Methods Summary
public org.bouncycastle.asn1.DERObjectIdentifiergetCertId()

        return certId;
    
public org.bouncycastle.asn1.DERObjectgetCertValue()

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

        ASN1EncodableVector  v = new ASN1EncodableVector();

        v.add(certId);
        v.add(new DERTaggedObject(0, certValue));

        return new DERSequence(v);