public PastCertificateValidation(TokenProxy token, DiagnosticData diagnosticData, XmlBasicBuildingBlocks bbb, POEExtraction poe, Date currentTime, ValidationPolicy policy, Context context) { super(new XmlPCV()); this.token = token; this.diagnosticData = diagnosticData; this.bbb = bbb; this.poe = poe; this.currentTime = currentTime; this.policy = policy; this.context = context; }
@Override protected void addAdditionalInfo() { result.setControlTime(controlTime); // can be null }
@Override protected Indication getFailedIndicationForConclusion() { return pcv.getConclusion().getIndication(); }
Date controlTime = pcvResult.getControlTime();
@Override protected SubIndication getFailedSubIndicationForConclusion() { return pcv.getConclusion().getSubIndication(); }
@Override protected boolean process() { if ((pcv != null) && (pcv.getConclusion() != null)) { Indication pcvIndication = pcv.getConclusion().getIndication(); SubIndication pcvSubindication = pcv.getConclusion().getSubIndication(); // INDETERMINATE cases are treated in following steps depending of POE return Indication.PASSED.equals(pcvIndication) || (Indication.INDETERMINATE.equals(pcvIndication) && (SubIndication.REVOKED_NO_POE.equals(pcvSubindication) || SubIndication.REVOKED_CA_NO_POE.equals(pcvSubindication) || SubIndication.OUT_OF_BOUNDS_NO_POE.equals(pcvSubindication) || SubIndication.CRYPTO_CONSTRAINTS_FAILURE_NO_POE.equals(pcvSubindication))); } return false; }
/** * Create an instance of {@link XmlPCV } * */ public XmlPCV createXmlPCV() { return new XmlPCV(); }
errors.addAll(xmlBasicBuildingBlocks.getPCV().getConclusion().getErrors()); warnings.addAll(xmlBasicBuildingBlocks.getPCV().getConclusion().getWarnings());