public TBSRequest( ASN1Sequence seq) { int index = 0; if (seq.getObjectAt(0) is ASN1TaggedObject) { ASN1TaggedObject o = (ASN1TaggedObject)seq.getObjectAt(0); if (o.getTagNo() == 0) { version = DERInteger.getInstance((ASN1TaggedObject)seq.getObjectAt(0), true); index++; } else { version = new DERInteger(0); } } else { version = new DERInteger(0); } if (seq.getObjectAt(index) is ASN1TaggedObject) { requestorName = GeneralName.getInstance((ASN1TaggedObject)seq.getObjectAt(index++), true); } requestList = (ASN1Sequence)seq.getObjectAt(index++); if (seq.size() == (index + 1)) { requestExtensions = X509Extensions.getInstance((ASN1TaggedObject)seq.getObjectAt(index), true); } }
public GeneralName getRequestorName() { return(GeneralName.getInstance(req.getTbsRequest().getRequestorName())); }