public Indication getCertificateXCVIndication(String certificateId) { if (jaxbDetailedReport.getCertificate() == null) { throw new DSSException("Only supported in report for certificate"); } List<XmlBasicBuildingBlocks> basicBuildingBlocks = jaxbDetailedReport.getBasicBuildingBlocks(); for (XmlBasicBuildingBlocks xmlBasicBuildingBlocks : basicBuildingBlocks) { XmlXCV xcv = xmlBasicBuildingBlocks.getXCV(); if (xcv != null) { List<XmlSubXCV> subXCV = xcv.getSubXCV(); for (XmlSubXCV xmlSubXCV : subXCV) { if (Utils.areStringsEqual(certificateId, xmlSubXCV.getId())) { return xmlSubXCV.getConclusion().getIndication(); } } } } return null; }
warnings.addAll(xmlBasicBuildingBlocks.getVTS().getConclusion().getWarnings()); if (xmlBasicBuildingBlocks.getXCV() != null) { errors.addAll(xmlBasicBuildingBlocks.getXCV().getConclusion().getErrors()); warnings.addAll(xmlBasicBuildingBlocks.getXCV().getConclusion().getWarnings()); if (xmlBasicBuildingBlocks.getXCV().getSubXCV() != null) { List<XmlSubXCV> subXCV = xmlBasicBuildingBlocks.getXCV().getSubXCV(); for (XmlSubXCV xmlSubXCV : subXCV){ errors.addAll(xmlSubXCV.getConclusion().getErrors());
private void collect(MessageType type, Set<String> result, XmlBasicBuildingBlocks bbb) { if (bbb != null) { collect(type, result, bbb.getFC()); collect(type, result, bbb.getISC()); collect(type, result, bbb.getCV()); collect(type, result, bbb.getSAV()); XmlXCV xcv = bbb.getXCV(); if (xcv != null) { collect(type, result, xcv); List<XmlSubXCV> subXCV = xcv.getSubXCV(); if (Utils.isCollectionNotEmpty(subXCV)) { for (XmlSubXCV xmlSubXCV : subXCV) { collect(type, result, xmlSubXCV); } } } collect(type, result, bbb.getVCI()); } }
XmlXCV xcv = signatureBBB.getXCV(); XmlConclusion xcvConclusion = xcv.getConclusion(); if (Indication.INDETERMINATE.equals(xcvConclusion.getIndication()) && SubIndication.REVOKED_NO_POE.equals(xcvConclusion.getSubIndication())) {
XmlXCV xcv = timestampBBB.getXCV(); XmlConclusion xcvConclusion = xcv.getConclusion(); if (!Indication.PASSED.equals(xcvConclusion.getIndication())) {
XmlXCV xcv = revocationBBB.getXCV(); XmlConclusion xcvConclusion = xcv.getConclusion(); if (!isAllowed(xcvConclusion)) {