Class EvidenceRecordWrapper

java.lang.Object
eu.europa.esig.dss.diagnostic.EvidenceRecordWrapper

public class EvidenceRecordWrapper extends Object
Provides a user-friendly interface for dealing with JAXB eu.europa.esig.dss.diagnostic.jaxb.XmlEvidenceRecord object
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Gets unique identifier
      Returns:
      String
    • getFilename

      public String getFilename()
      Returns name of the evidence record's document, when applicable
      Returns:
      String
    • getDigestMatchers

      public List<XmlDigestMatcher> getDigestMatchers()
      Gets a list of digest matchers representing the associated archival data objects validation status
      Returns:
      a list of XmlDigestMatcher
    • getFirstTimestamp

      public TimestampWrapper getFirstTimestamp()
      Returns initial time-stamp of the evidence record
      Returns:
      TimestampWrapper
    • getTimestampList

      public List<TimestampWrapper> getTimestampList()
      Gets a list of time-stamp tokens associated with the evidence record
      Returns:
      a list of TimestampWrappers
    • getTimestampIdsList

      public List<String> getTimestampIdsList()
      Returns a list of time-stamp identifiers associated with the Evidence Record
      Returns:
      a list of Strings
    • foundCertificates

      public FoundCertificatesProxy foundCertificates()
      Returns a collection of certificate tokens embedded within Evidence Record
      Returns:
      FoundCertificatesProxy
    • foundRevocations

      public FoundRevocationsProxy foundRevocations()
      Returns a collection of revocation tokens embedded within Evidence Record
      Returns:
      FoundRevocationsProxy
    • getEvidenceRecordType

      public EvidenceRecordTypeEnum getEvidenceRecordType()
      Gets the evidence record format type
      Returns:
      EvidenceRecordTypeEnum
    • isStructuralValidationValid

      public boolean isStructuralValidationValid()
      Gets if a structural validation of the evidence record is valid
      Returns:
      TRUE if the structure of the evidence record is valid, FALSE otherwise
    • getStructuralValidationMessages

      public List<String> getStructuralValidationMessages()
      Returns structural validation error messages, when applicable
      Returns:
      a list of String error messages
    • getCoveredObjects

      public List<XmlTimestampedObject> getCoveredObjects()
      Returns a list of objects covered by the evidence record
      Returns:
      a list of XmlTimestampedObjects
    • getCoveredSignatures

      public List<SignatureWrapper> getCoveredSignatures()
      Returns a list of SignatureWrappers covered be the current evidence record
      Returns:
      list of SignatureWrappers
    • getCoveredCertificates

      public List<CertificateWrapper> getCoveredCertificates()
      Returns a list of certificates covered be the current evidence record
      Returns:
      list of CertificateWrappers
    • getCoveredRevocations

      public List<RevocationWrapper> getCoveredRevocations()
      Returns a list of revocation data covered be the current evidence record
      Returns:
      list of RevocationWrappers
    • getCoveredTimestamps

      public List<TimestampWrapper> getCoveredTimestamps()
      Returns a list of timestamps covered be the current evidence record
      Returns:
      list of TimestampWrappers
    • getCoveredEvidenceRecords

      public List<EvidenceRecordWrapper> getCoveredEvidenceRecords()
      Returns a list of evidence records covered be the current evidence record
      Returns:
      list of EvidenceRecordWrappers
    • getCoveredSignedData

      public List<SignerDataWrapper> getCoveredSignedData()
      Returns a list of Signed data covered be the current evidence record
      Returns:
      list of SignerDataWrappers
    • getAllCoveredOrphanTokens

      public List<OrphanTokenWrapper> getAllCoveredOrphanTokens()
      Returns a list of all OrphanTokens covered by the evidence record
      Returns:
      list of OrphanTokenWrappers
    • getCoveredOrphanCertificates

      public List<OrphanCertificateTokenWrapper> getCoveredOrphanCertificates()
      Returns a list of OrphanCertificateTokens covered by the evidence record
      Returns:
      list of orphan certificates
    • getCoveredOrphanRevocations

      public List<OrphanRevocationTokenWrapper> getCoveredOrphanRevocations()
      Returns a list of OrphanRevocationTokens covered by the evidence record
      Returns:
      list of orphan revocations
    • getEvidenceRecordScopes

      public List<XmlSignatureScope> getEvidenceRecordScopes()
      Returns Evidence record's Signature Scopes
      Returns:
      a list of XmlSignatureScopes
    • getBinaries

      public byte[] getBinaries()
      Returns binaries of the evidence record
      Returns:
      byet array
    • getDigestAlgoAndValue

      public XmlDigestAlgoAndValue getDigestAlgoAndValue()
      Returns digest algorithm and value of the timestamp token binaries, when defined
      Returns:
      XmlDigestAlgoAndValue