Module jpms_dss_spi

Interface EvidenceRecordAnalyzerFactory

All Superinterfaces:
DocumentAnalyzerFactory

public interface EvidenceRecordAnalyzerFactory extends DocumentAnalyzerFactory
This class is used to load a corresponding implementation of EvidenceRecordAnalyzer for processing of an evidence record document
  • Method Summary

    Modifier and Type
    Method
    Description
    create(eu.europa.esig.dss.model.DSSDocument document)
    This method instantiates a EvidenceRecordAnalyzer with the given document
    fromDocument(eu.europa.esig.dss.model.DSSDocument document)
    Creates an EvidenceRecordValidator by loading a corresponding implementation, across EvidenceRecordValidatorFactory instances found by ServiceLoader.
    boolean
    isSupported(eu.europa.esig.dss.model.DSSDocument document)
    This method tests if the current implementation of EvidenceRecordAnalyzer supports the given document
    static boolean
    isSupportedDocument(eu.europa.esig.dss.model.DSSDocument document)
    Verifies if the document is supported by one of the implementations, across EvidenceRecordValidatorFactory instances found by ServiceLoader.
  • Method Details

    • isSupported

      boolean isSupported(eu.europa.esig.dss.model.DSSDocument document)
      This method tests if the current implementation of EvidenceRecordAnalyzer supports the given document
      Specified by:
      isSupported in interface DocumentAnalyzerFactory
      Parameters:
      document - the document to be tested
      Returns:
      true, if the EvidenceRecordAnalyzer supports the given document
    • create

      EvidenceRecordAnalyzer create(eu.europa.esig.dss.model.DSSDocument document)
      This method instantiates a EvidenceRecordAnalyzer with the given document
      Specified by:
      create in interface DocumentAnalyzerFactory
      Parameters:
      document - the document to be used for the EvidenceRecordAnalyzer creation
      Returns:
      an instance of EvidenceRecordAnalyzer with the document
    • isSupportedDocument

      static boolean isSupportedDocument(eu.europa.esig.dss.model.DSSDocument document)
      Verifies if the document is supported by one of the implementations, across EvidenceRecordValidatorFactory instances found by ServiceLoader.
      Parameters:
      document - DSSDocument to verify
      Returns:
      TRUE if the evidence record is supported by one of the found implementations, FALSE otherwise
    • fromDocument

      static EvidenceRecordAnalyzer fromDocument(eu.europa.esig.dss.model.DSSDocument document) throws UnsupportedOperationException
      Creates an EvidenceRecordValidator by loading a corresponding implementation, across EvidenceRecordValidatorFactory instances found by ServiceLoader.
      Parameters:
      document - DSSDocument to load validator for
      Returns:
      EvidenceRecordAnalyzer if corresponding implementation found
      Throws:
      UnsupportedOperationException - is the document format is not supported or implementation is not found