private BasicOCSPResponse(ASN1Sequence seq) { this.tbsResponseData = ResponseData.getInstance(seq.getObjectAt(0)); this.signatureAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(1)); this.signature = (DERBitString) seq.getObjectAt(2); if (seq.size() > 3) { this.certs = ASN1Sequence.getInstance((ASN1TaggedObject) seq.getObjectAt(3), true); } }
private OOBCertHash(ASN1Sequence seq) { int index = seq.size() - 1; hashVal = DERBitString.getInstance(seq.getObjectAt(index--)); for (int i = index; i >= 0; i--) { ASN1TaggedObject tObj = (ASN1TaggedObject) seq.getObjectAt(i); if (tObj.getTagNo() == 0) { hashAlg = AlgorithmIdentifier.getInstance(tObj, true); } else { certId = CertId.getInstance(tObj, true); } } }
public InfoTypeAndValue[] toInfoTypeAndValueArray() { InfoTypeAndValue[] result = new InfoTypeAndValue[content.size()]; for (int i = 0; i != result.length; i++) { result[i] = InfoTypeAndValue.getInstance(content.getObjectAt(i)); } return result; }
private CRLBag(ASN1Sequence seq) { this.crlId = (ASN1ObjectIdentifier) seq.getObjectAt(0); this.crlValue = ((DERTaggedObject) seq.getObjectAt(1)).getObject(); }