Codota Logo
DSSNotETSICompliantException
Code IndexAdd Codota to your IDE (free)

How to use
DSSNotETSICompliantException
in
eu.europa.ec.markt.dss.exception

Best Java code snippets using eu.europa.ec.markt.dss.exception.DSSNotETSICompliantException (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: arhs/sd-dss

  @Override
  public String getMessage() {

    return getLocalizedMessage();
  }
}
origin: arhs/sd-dss

/**
 * The default constructor for DSSNotETSICompliantException.
 *
 * @param message
 */
public DSSNotETSICompliantException(final MSG message, final String more) {
  init(message);
  this.more = more;
}
origin: arhs/sd-dss

throw new DSSNotETSICompliantException(DSSNotETSICompliantException.MSG.UNRECOGNIZED_TAG, namespaceUri + ":" + localName);
origin: arhs/sd-dss

@Override
public List<OCSPRef> getOCSPRefs() {
  final List<OCSPRef> certIds = new ArrayList<OCSPRef>();
  final Element signingCertEl = DSSXMLUtils.getElement(signatureElement, xPathQueryHolder.XPATH_OCSP_REFS);
  if (signingCertEl != null) {
    final NodeList ocspRefNodes = DSSXMLUtils.getNodeList(signingCertEl, xPathQueryHolder.XPATH__OCSPREF);
    for (int i = 0; i < ocspRefNodes.getLength(); i++) {
      final Element certId = (Element) ocspRefNodes.item(i);
      final Element digestAlgorithmEl = DSSXMLUtils.getElement(certId, xPathQueryHolder.XPATH__DAAV_DIGEST_METHOD);
      final Element digestValueEl = DSSXMLUtils.getElement(certId, xPathQueryHolder.XPATH__DAAV_DIGEST_VALUE);
      if (digestAlgorithmEl == null || digestValueEl == null) {
        throw new DSSNotETSICompliantException(DSSNotETSICompliantException.MSG.XADES_DIGEST_ALG_AND_VALUE_ENCODING);
      }
      final String xmlName = digestAlgorithmEl.getAttribute(XMLE_ALGORITHM);
      final DigestAlgorithm digestAlgo = DigestAlgorithm.forXML(xmlName);
      final String digestValue = digestValueEl.getTextContent();
      final byte[] base64EncodedDigestValue = DSSUtils.base64Decode(digestValue);
      final OCSPRef ocspRef = new OCSPRef(digestAlgo, base64EncodedDigestValue, false);
      certIds.add(ocspRef);
    }
  }
  return certIds;
}
origin: arhs/sd-dss

private void parseQualificationElement(final QualificationElementType qualificationElement, final ServiceInfo service) {
  final QualifiersType qualifierList = qualificationElement.getQualifiers();
  if (qualifierList == null || qualifierList.getQualifier().isEmpty()) {
    return;
  }
  try {
    final CriteriaListType criteriaList = qualificationElement.getCriteriaList();
    if (criteriaList != null) {
      if (criteriaList.getKeyUsage().isEmpty() && criteriaList.getPolicySet().isEmpty() && criteriaList.getCriteriaList().isEmpty()) {
        LOG.trace("CriteriaList for service is empty, the QualificationElement is skipped.");
        return;
      }
      final Condition compositeCondition = parseCriteriaList(criteriaList);
      for (QualifierType qualifier : qualifierList.getQualifier()) {
        service.addQualifierAndCondition(qualifier.getUri(), compositeCondition);
      }
    }
  } catch (IllegalArgumentException e) {
    throw new DSSNotETSICompliantException(DSSNotETSICompliantException.MSG.UNSUPPORTED_ASSERT);
  }
}
origin: arhs/sd-dss

/**
 * Adds a service entry (current or history) to the list of certificate tokens.
 *
 * @param x509Certificate the certificate which identifies the trusted service
 * @param trustedService  Object defining the trusted service
 * @param tsProvider      Object defining the trusted service provider, must be the parent of the trusted service
 * @param tlWellSigned    Indicates if the signature of trusted list is valid
 */
private synchronized void addCertificate(final X509Certificate x509Certificate, final AbstractTrustService trustedService, final TrustServiceProvider tsProvider,
                     final boolean tlWellSigned) {
  try {
    final ServiceInfo serviceInfo = getServiceInfo(trustedService, tsProvider, tlWellSigned);
    addCertificate(x509Certificate, serviceInfo);
  } catch (DSSNotETSICompliantException ex) {
    LOG.error("The entry for " + trustedService.getServiceName() + " doesn't respect ETSI specification " + ex.getLocalizedMessage());
  }
}
origin: arhs/sd-dss

/**
 * The default constructor for DSSNotETSICompliantException.
 *
 * @param message
 */
public DSSNotETSICompliantException(final MSG message) {
  init(message);
}
origin: arhs/sd-dss

throw new DSSNotETSICompliantException(DSSNotETSICompliantException.MSG.DIFFERENT_SIGNATURE_FORMATS);
throw new DSSNotETSICompliantException(DSSNotETSICompliantException.MSG.DIFFERENT_SIGNATURE_FORMATS);
origin: arhs/sd-dss

public DSSNotETSICompliantException(final MSG message, final Throwable cause) {
  super(cause);
  init(message);
}
eu.europa.ec.markt.dss.exceptionDSSNotETSICompliantException

Javadoc

Occurs when something don't respect the ETSI specification

Most used methods

  • <init>
  • getLocalizedMessage
  • init

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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