private static boolean checkSingleExts(OCSPResponse.SingleResponse sr, int singleExtCount) { Map<String, Extension> singleExts; try { singleExts = sr.getSingleExtensions(); } catch (NullPointerException npe) { System.out.println("Warning: Sent null singleResponse into checkSingleExts"); return false; } for (String key : singleExts.keySet()) { System.out.println("singleExtension: " + singleExts.get(key)); } if (singleExts.size() != singleExtCount) { System.out.println( "Single Extension count mismatch, " + "expected " + singleExtCount + ", got " + singleExts.size()); return false; } else { return true; } }
/** * Retrieves the dialog for given <tt>requestId</tt>. * * @param requestId dialog's request identifier assigned during dialog creation. * @return the dialog for given <tt>requestId</tt>. */ public VerifyCertDialog retrieveDialog(Long requestId) { logger.debug(hashCode() + " getting dialog: " + requestId); return requestMap.get(requestId); }