Codota Logo
XmlDom.getElements
Code IndexAdd Codota to your IDE (free)

How to use
getElements
method
in
eu.europa.ec.markt.dss.validation102853.xml.XmlDom

Best Java code snippets using eu.europa.ec.markt.dss.validation102853.xml.XmlDom.getElements (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: arhs/sd-dss

/**
 * This method extracts all timestamps from the {@code XmlDom} signature representation and adds them to the timestamp {@code List}
 *
 * @param signature     {@code XmlDom} representation of the signature
 * @param timestampType
 * @param timestamps    the {@code List} of the all extracted timestamps
 */
private void extractTimestamp(final XmlDom signature, final TimestampType timestampType, final List<XmlDom> timestamps) {
  final String xPath = "./Timestamps/Timestamp[@Type='%s']";
  final List<XmlDom> extractedTimestamps = signature.getElements(xPath, timestampType);
  timestamps.addAll(extractedTimestamps);
}
origin: arhs/sd-dss

public void copyWarnings(final XmlDom conclusionXmlDom) {
  final List<XmlDom> warnings = conclusionXmlDom.getElements("./Warning");
  addWarnings(warnings);
}
origin: arhs/sd-dss

/**
 * This function returns the list of qualifiers for the given certificate.
 *
 * @param certificate The certificate
 * @return the {@code List} of qualifiers or an empty list if the certificate is null.
 */
public static List<String> getQualifiers(final XmlDom certificate) {
  if (certificate == null) {
    return new ArrayList<String>();
  }
  final List<XmlDom> qualifiersDomList = certificate.getElements("./TrustedServiceProvider/Qualifiers/Qualifier");
  final List<String> qualifiers = XmlDom.convertToStringList(qualifiersDomList);
  return qualifiers;
}
origin: arhs/sd-dss

public void copyConclusion(final XmlDom conclusionXmlDom) {
  final String indication = conclusionXmlDom.getValue("./Indication/text()");
  if (!indication.isEmpty()) {
    this.indication = indication;
  }
  final String subIndication = conclusionXmlDom.getValue("./SubIndication/text()");
  if (!subIndication.isEmpty()) {
    this.subIndication = subIndication;
  }
  final List<XmlDom> errors = conclusionXmlDom.getElements("./Error");
  addErrors(errors);
  final List<XmlDom> warnings = conclusionXmlDom.getElements("./Warning");
  addWarnings(warnings);
  final List<XmlDom> info = conclusionXmlDom.getElements("./Info");
  addInfo(info);
}
origin: arhs/sd-dss

final List<XmlDom> tspList = certificateXmlDom.getElements("./TrustedServiceProvider");
boolean acceptableStatus = false;
String status = DSSUtils.EMPTY;
origin: arhs/sd-dss

final List<XmlDom> nodes = timestamp.getElements("./SignedObjects/*");
for (final XmlDom xmlDom : nodes) {
origin: arhs/sd-dss

final List<XmlDom> tspList = certificateXmlDom.getElements("./TrustedServiceProvider");
boolean found = false;
for (final XmlDom trustedServiceProviderXmlDom : tspList) {
origin: arhs/sd-dss

final String ltvIndication = ltvConclusion.getValue("./Indication/text()");
final String ltvSubIndication = ltvConclusion.getValue("./SubIndication/text()");
final List<XmlDom> ltvInfoList = ltvConclusion.getElements("./Info");
infoList.addAll(ltvInfoList);
final List<XmlDom> basicValidationInfoList = basicValidationConclusion.getElements("./Info");
final List<XmlDom> basicValidationWarningList = basicValidationConclusion.getElements("./Warning");
final List<XmlDom> basicValidationErrorList = basicValidationConclusion.getElements("./Error");
  final List<XmlDom> errorMessages = diagnosticSignature.getElements("./ErrorMessage");
  for (XmlDom errorDom : errorMessages) {
origin: arhs/sd-dss

final List<XmlDom> tspList = certificateXmlDom.getElements("./TrustedServiceProvider");
boolean found = false;
for (final XmlDom trustedServiceProviderXmlDom : tspList) {
origin: arhs/sd-dss

final List<XmlDom> timestamps = signatureXmlDom.getElements("./Timestamps/Timestamp[@Type='%s']", TimestampType.SIGNATURE_TIMESTAMP);
timestamps.addAll(signatureXmlDom.getElements("./Timestamps/Timestamp[@Type='%s']", TimestampType.CONTENT_TIMESTAMP));
timestamps.addAll(signatureXmlDom.getElements("./Timestamps/Timestamp[@Type='%s']", TimestampType.ALL_DATA_OBJECTS_TIMESTAMP));
timestamps.addAll(signatureXmlDom.getElements("./Timestamps/Timestamp[@Type='%s']", TimestampType.INDIVIDUAL_DATA_OBJECTS_TIMESTAMP));
origin: arhs/sd-dss

/**
 * Check of unsigned qualifying property: claimed roles
 *
 * @param conclusion the conclusion to use to add the result of the check.
 * @return false if the check failed and the process should stop, true otherwise.
 */
private boolean checkClaimedRoleConstraint(final Conclusion conclusion) {
  final Constraint constraint = constraintData.getClaimedRoleConstraint();
  if (constraint == null) {
    return true;
  }
  constraint.create(subProcessNode, BBB_SAV_ICRM);
  final List<XmlDom> claimedRolesXmlDom = signatureContext.getElements("./ClaimedRoles/ClaimedRole");
  final List<String> claimedRoles = XmlDom.convertToStringList(claimedRolesXmlDom);
  // TODO (Bob) to be implemented fro each claimed role. Attendance must be taken into account.
  final String attendance = constraintData.getCertifiedRolesAttendance();
  String claimedRole = null;
  for (String claimedRole_ : claimedRoles) {
    claimedRole = claimedRole_;
    break;
  }
  if ("ANY".equals(attendance)) {
    constraint.setExpectedValue("*");
  }
  constraint.setValue(claimedRole);
  constraint.setIndications(INVALID, SIG_CONSTRAINTS_FAILURE, BBB_SAV_ICRM_ANS);
  constraint.setConclusionReceiver(conclusion);
  boolean check = constraint.checkInList();
  return check;
}
origin: arhs/sd-dss

/**
 * This method checks if the signing certificate has an appropriate key usage.
 *
 * @param conclusion        the conclusion to use to add the result of the check.
 * @param certificateId
 * @param certificateXmlDom
 * @return
 */
private boolean checkKeyUsageConstraint(Conclusion conclusion, String certificateId, XmlDom certificateXmlDom) {
  final Constraint constraint = constraintData.getSigningCertificateKeyUsageConstraint(contextName);
  if (constraint == null) {
    return true;
  }
  constraint.create(validationDataXmlNode, BBB_XCV_ISCGKU);
  final List<XmlDom> keyUsageBits = certificateXmlDom.getElements("./KeyUsageBits/KeyUsage");
  final List<String> stringList = XmlDom.convertToStringList(keyUsageBits);
  constraint.setValue(stringList);
  constraint.setIndications(INVALID, SIG_CONSTRAINTS_FAILURE, BBB_XCV_ISCGKU_ANS);
  constraint.setAttribute(CERTIFICATE_ID, certificateId);
  constraint.setConclusionReceiver(conclusion);
  return constraint.checkInList();
}
origin: arhs/sd-dss

final List<XmlDom> signatures = diagnosticData.getElements("/DiagnosticData/Signature");
origin: arhs/sd-dss

if (signProductionPlaceXmlDom != null) {
  final List<XmlDom> elements = signProductionPlaceXmlDom.getElements("./*");
  for (final XmlDom element : elements) {
origin: arhs/sd-dss

final List<XmlDom> signatures = diagnosticData.getElements("/DiagnosticData/Signature");
for (final XmlDom signature : signatures) {
origin: arhs/sd-dss

final List<XmlDom> certificates = params.getCertPool().getElements("./Certificate");
  final List<XmlDom> adestInfo = adestSignatureConclusion.getElements("./Info");
  constraintNode.addChildren(adestInfo);
  conclusionNode.addChildren(adestInfo);
final List<XmlDom> archiveTimestamps = signature.getElements("./Timestamps/Timestamp[@Type='%s']", TimestampType.ARCHIVE_TIMESTAMP);
if (archiveTimestamps.size() > 0) {
final List<XmlDom> refsOnlyTimestamps = signature.getElements("./Timestamps/Timestamp[@Type='%s']", TimestampType.VALIDATION_DATA_REFSONLY_TIMESTAMP);
if (refsOnlyTimestamps.size() > 0) {
final List<XmlDom> sigAndRefsTimestamps = signature.getElements("./Timestamps/Timestamp[@Type='%s']", TimestampType.VALIDATION_DATA_TIMESTAMP);
if (sigAndRefsTimestamps.size() > 0) {
final List<XmlDom> timestamps = signature.getElements("./Timestamps/Timestamp[@Type='%s']", TimestampType.SIGNATURE_TIMESTAMP);
if (timestamps.size() > 0) {
origin: arhs/sd-dss

final List<XmlDom> signatures = basicBuildingBlocksReport.getElements("./Signature");
for (final XmlDom signature : signatures) {
origin: arhs/sd-dss

final List<XmlDom> timestamps = signatureXmlDom.getElements("./Timestamps/Timestamp");
origin: arhs/sd-dss

LOG.debug(this.getClass().getSimpleName() + ": start.");
final List<XmlDom> signatures = diagnosticData.getElements("/DiagnosticData/Signature");
origin: arhs/sd-dss

final List<XmlDom> signatures = diagnosticData.getElements("/DiagnosticData/Signature");
eu.europa.ec.markt.dss.validation102853.xmlXmlDomgetElements

Javadoc

The list of elements corresponding the given XPath query and parameters.

Popular methods of XmlDom

  • getText
  • <init>
  • exists
  • getAttribute
    Retrieves an attribute value by name.
  • getBoolValue
  • getElement
  • getRootElement
  • getValue
  • addNamespacePrefix
  • convertToStringDateMap
    Converts the list of XmlDom to Map of String, Date. The children of the node are not taken into acco
  • convertToStringList
    Converts the list of XmlDom to List of String. The children of the node are not taken into account.
  • convertToStringMap
    Converts the list of XmlDom to Map of String, String. The children of the node are not taken into ac
  • convertToStringList,
  • convertToStringMap,
  • createXPathExpression,
  • format,
  • getAttributes,
  • getCountValue,
  • getIntValue,
  • getName,
  • getNodeList

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTable (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now