Tabnine Logo
DSSException.getMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessage
method
in
eu.europa.esig.dss.DSSException

Best Java code snippets using eu.europa.esig.dss.DSSException.getMessage (Showing top 4 results out of 315)

origin: open-eid/digidoc4j

protected MimeType getMimeType(String mimeType) {
 try {
  MimeType mimeTypeCode = MimeType.fromMimeTypeString(mimeType);
  logger.debug("Mime type: ", mimeTypeCode);
  return mimeTypeCode;
 } catch (DSSException e) {
  logger.error(e.getMessage());
  throw new InvalidDataFileException(e);
 }
}
origin: open-eid/digidoc4j

public SignedDocumentValidator openXadesValidator(DSSDocument signature) {
 try {
  logger.debug("Opening signature validator");
  SignedDocumentValidator validator = new XMLDocumentValidator(signature);
  logger.debug("Finished opening signature validator");
  validator.setDetachedContents(detachedContents);
  validator.setCertificateVerifier(certificateVerifier);
  SignaturePolicyProvider signaturePolicyProvider = Helper.getBdocSignaturePolicyProvider(signature);
  validator.setSignaturePolicyProvider(signaturePolicyProvider);
  return validator;
 } catch (DSSException e) {
  logger.error("Failed to parse xades signature: " + e.getMessage());
  throw new InvalidSignatureException();
 }
}
origin: open-eid/digidoc4j

 signedDocument = xAdESService.signDocument(detachedContentList, xAdESSignatureParameters, dssSignatureValue);
} catch (DSSException e) {
 logger.warn("Signing document in DSS failed:" + e.getMessage());
 throw new TechnicalException("Got error in signing process: ", e);
origin: esig/dss

@Test
public void testDontSkipCertificatesWhenMultipleAreFoundInP7c() throws IOException {
  try {
    DSSUtils.loadCertificate(new FileInputStream("src/test/resources/certchain.p7c"));
    fail("Should not load single certificate (first?)");
  } catch (DSSException dssEx) {
    assertEquals("Could not parse certificate", dssEx.getMessage());
  }
}
eu.europa.esig.dssDSSExceptiongetMessage

Popular methods of DSSException

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now