public SignatureBasicBuildingBlocksCheck(XmlValidationProcessBasicSignatures result, DiagnosticData diagnosticData, XmlBasicBuildingBlocks signatureBBB, Map<String, XmlBasicBuildingBlocks> bbbs, LevelConstraint constraint) { super(result, constraint, signatureBBB.getId()); this.diagnosticData = diagnosticData; this.signatureBBB = signatureBBB; this.bbbs = bbbs; }
public TimestampBasicBuildingBlocksCheck(XmlValidationProcessTimestamps result, XmlBasicBuildingBlocks timestampBBB, LevelConstraint constraint) { super(result, constraint, timestampBBB.getId()); this.timestampBBB = timestampBBB; }
public RevocationBasicBuildingBlocksCheck(XmlValidationProcessLongTermData result, XmlBasicBuildingBlocks revocationBBB, LevelConstraint constraint) { super(result, constraint, revocationBBB.getId()); this.revocationBBB = revocationBBB; }
public List<String> getTimestampIds() { List<String> result = new ArrayList<String>(); List<XmlBasicBuildingBlocks> bbbs = jaxbDetailedReport.getBasicBuildingBlocks(); for (XmlBasicBuildingBlocks bbb : bbbs) { if (Context.TIMESTAMP == bbb.getType()) { result.add(bbb.getId()); } } return result; }
public List<String> getRevocationIds() { List<String> result = new ArrayList<String>(); List<XmlBasicBuildingBlocks> bbbs = jaxbDetailedReport.getBasicBuildingBlocks(); for (XmlBasicBuildingBlocks bbb : bbbs) { if (Context.REVOCATION == bbb.getType()) { result.add(bbb.getId()); } } return result; }
public List<String> getSignatureIds() { List<String> result = new ArrayList<String>(); List<XmlBasicBuildingBlocks> bbbs = jaxbDetailedReport.getBasicBuildingBlocks(); for (XmlBasicBuildingBlocks bbb : bbbs) { if (Context.SIGNATURE == bbb.getType() || Context.COUNTER_SIGNATURE == bbb.getType()) { result.add(bbb.getId()); } } return result; }
/** * Returns the id of the token. The signature is identified by its index: 0 for the first one. * * @param index * (position/order) of the signature within the report * @return {@code String} identifying the token */ public String getBasicBuildingBlocksSignatureId(final int index) { List<XmlBasicBuildingBlocks> bbbs = jaxbDetailedReport.getBasicBuildingBlocks(); if (Utils.collectionSize(bbbs) >= index) { XmlBasicBuildingBlocks bbb = jaxbDetailedReport.getBasicBuildingBlocks().get(index); if (bbb != null) { return bbb.getId(); } } return null; }
/** * This method returns the full content of the Basic Building Block for a token (signature, timestamp, revocation) * * @param tokenId * the token identifier * @return the XmlBasicBuildingBlocks */ public XmlBasicBuildingBlocks getBasicBuildingBlockById(String tokenId) { List<XmlBasicBuildingBlocks> basicBuildingBlocks = jaxbDetailedReport.getBasicBuildingBlocks(); if (Utils.isCollectionNotEmpty(basicBuildingBlocks)) { for (XmlBasicBuildingBlocks xmlBasicBuildingBlocks : basicBuildingBlocks) { if (Utils.areStringsEqual(xmlBasicBuildingBlocks.getId(), tokenId)) { return xmlBasicBuildingBlocks; } } } return null; }
XmlConclusion xcvConclusion = xcv.getConclusion(); if (Indication.INDETERMINATE.equals(xcvConclusion.getIndication()) && SubIndication.REVOKED_NO_POE.equals(xcvConclusion.getSubIndication())) { SignatureWrapper currentSignature = diagnosticData.getSignatureById(signatureBBB.getId()); List<TimestampWrapper> contentTimestamps = currentSignature.getTimestampListByType(TimestampType.CONTENT_TIMESTAMP); if (Utils.isCollectionNotEmpty(contentTimestamps)) { SignatureWrapper currentSignature = diagnosticData.getSignatureById(signatureBBB.getId()); List<TimestampWrapper> contentTimestamps = currentSignature.getTimestampListByType(TimestampType.CONTENT_TIMESTAMP); if (Utils.isCollectionNotEmpty(contentTimestamps)) { && SubIndication.CRYPTO_CONSTRAINTS_FAILURE_NO_POE.equals(savConclusion.getSubIndication())) { SignatureWrapper currentSignature = diagnosticData.getSignatureById(signatureBBB.getId()); List<TimestampWrapper> contentTimestamps = currentSignature.getTimestampListByType(TimestampType.CONTENT_TIMESTAMP); if (Utils.isCollectionNotEmpty(contentTimestamps)) {