this.bagId = oid; this.bagValue = obj; this.bagAttributes = null;
this.bagId = oid; this.bagValue = obj; this.bagAttributes = bagAttributes;
this.bagId = (DERObjectIdentifier)seq.getObjectAt(0); this.bagValue = ((DERTaggedObject)seq.getObjectAt(1)).getObject(); if (seq.size() == 3) { this.bagAttributes = (ASN1Set)seq.getObjectAt(2); }
return bagAttributes;
return bagId;
return bagValue;
ASN1EncodableVector v = new ASN1EncodableVector(); v.add(bagId); v.add(new DERTaggedObject(0, bagValue)); if (bagAttributes != null) { v.add(bagAttributes); } return new DERSequence(v);