Package eu.europa.esig.dss.diagnostic
Class EvidenceRecordWrapper
java.lang.Object
eu.europa.esig.dss.diagnostic.EvidenceRecordWrapper
Provides a user-friendly interface for dealing with JAXB
eu.europa.esig.dss.diagnostic.jaxb.XmlEvidenceRecord
object-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of certificate tokens embedded within Evidence RecordReturns a collection of revocation tokens embedded within Evidence RecordReturns a list of all OrphanTokens covered by the evidence recordbyte[]
Returns binaries of the evidence recordReturns a list of certificates covered be the current evidence recordReturns a list of evidence records covered be the current evidence recordReturns a list of objects covered by the evidence recordReturns a list of OrphanCertificateTokens covered by the evidence recordReturns a list of OrphanRevocationTokens covered by the evidence recordReturns a list of revocation data covered be the current evidence recordReturns a list ofSignatureWrapper
s covered be the current evidence recordReturns a list of Signed data covered be the current evidence recordReturns a list of timestamps covered be the current evidence recordReturns digest algorithm and value of the timestamp token binaries, when definedGets a list of digest matchers representing the associated archival data objects validation statusReturns Evidence record's Signature ScopesGets the evidence record format typeReturns name of the evidence record's document, when applicableReturns initial time-stamp of the evidence recordgetId()
Gets unique identifierReturns structural validation error messages, when applicableReturns a list of time-stamp identifiers associated with the Evidence RecordGets a list of time-stamp tokens associated with the evidence recordboolean
Checks if the evidence record's Id is duplicated within the validating documentboolean
Gets if a structural validation of the evidence record is valid
-
Constructor Details
-
EvidenceRecordWrapper
Default constructor- Parameters:
evidenceRecord
-XmlEvidenceRecord
-
-
Method Details
-
getId
-
isEvidenceRecordDuplicated
public boolean isEvidenceRecordDuplicated()Checks if the evidence record's Id is duplicated within the validating document- Returns:
- TRUE if there is a duplicated evidence record Id, FALSE otherwise
-
getFilename
-
getDigestMatchers
Gets a list of digest matchers representing the associated archival data objects validation status- Returns:
- a list of
XmlDigestMatcher
-
getFirstTimestamp
Returns initial time-stamp of the evidence record- Returns:
TimestampWrapper
-
getTimestampList
Gets a list of time-stamp tokens associated with the evidence record- Returns:
- a list of
TimestampWrapper
s
-
getTimestampIdsList
-
foundCertificates
Returns a collection of certificate tokens embedded within Evidence Record- Returns:
FoundCertificatesProxy
-
foundRevocations
Returns a collection of revocation tokens embedded within Evidence Record- Returns:
FoundRevocationsProxy
-
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
-
getCoveredObjects
Returns a list of objects covered by the evidence record- Returns:
- a list of
XmlTimestampedObject
s
-
getCoveredSignatures
Returns a list ofSignatureWrapper
s covered be the current evidence record- Returns:
- list of
SignatureWrapper
s
-
getCoveredCertificates
Returns a list of certificates covered be the current evidence record- Returns:
- list of
CertificateWrapper
s
-
getCoveredRevocations
Returns a list of revocation data covered be the current evidence record- Returns:
- list of
RevocationWrapper
s
-
getCoveredTimestamps
Returns a list of timestamps covered be the current evidence record- Returns:
- list of
TimestampWrapper
s
-
getCoveredEvidenceRecords
Returns a list of evidence records covered be the current evidence record- Returns:
- list of
EvidenceRecordWrapper
s
-
getCoveredSignedData
Returns a list of Signed data covered be the current evidence record- Returns:
- list of
SignerDataWrapper
s
-
getAllCoveredOrphanTokens
Returns a list of all OrphanTokens covered by the evidence record- Returns:
- list of
OrphanTokenWrapper
s
-
getCoveredOrphanCertificates
Returns a list of OrphanCertificateTokens covered by the evidence record- Returns:
- list of orphan certificates
-
getCoveredOrphanRevocations
Returns a list of OrphanRevocationTokens covered by the evidence record- Returns:
- list of orphan revocations
-
getEvidenceRecordScopes
Returns Evidence record's Signature Scopes- Returns:
- a list of
XmlSignatureScope
s
-
getBinaries
public byte[] getBinaries()Returns binaries of the evidence record- Returns:
- byet array
-
getDigestAlgoAndValue
Returns digest algorithm and value of the timestamp token binaries, when defined- Returns:
XmlDigestAlgoAndValue
-