private void addBasicOcspRespFrom_id_ri_ocsp_response(final List<BasicOCSPResp> basicOCSPResps) { final Store otherRevocationInfo = cmsSignedData.getOtherRevocationInfo(CMSObjectIdentifiers.id_ri_ocsp_response); final Collection otherRevocationInfoMatches = otherRevocationInfo.getMatches(null); for (final Object object : otherRevocationInfoMatches) { final BasicOCSPResp basicOCSPResp; final DERSequence otherRevocationInfoMatch = (DERSequence) object; if (otherRevocationInfoMatch.size() == 4) { basicOCSPResp = DSSASN1Utils.getBasicOcspResp(otherRevocationInfoMatch); } else { final OCSPResp ocspResp = DSSASN1Utils.getOcspResp(otherRevocationInfoMatch); basicOCSPResp = DSSASN1Utils.getBasicOCSPResp(ocspResp); } addBasicOcspResp(basicOCSPResps, basicOCSPResp); } }