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
Constructors -
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 ofSignatureWrappers 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 Scopeseu.europa.esig.dss.enumerations.EvidenceRecordTypeEnumGets the evidence record format typeReturns name of the evidence record's document, when applicableReturns initial time-stamp of the evidence recordgetId()Gets unique identifiereu.europa.esig.dss.enumerations.EvidenceRecordIncorporationTypeGets the incorporation of the evidence record within an embedding signature.eu.europa.esig.dss.enumerations.EvidenceRecordOriginGets the origin of the evidence recordReturns a master-signature in case of a counter-signatureReturns 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 recordbooleanGets whether the evidence record has been embedded into a signature (supported for XAdES and CAdES)booleanChecks if the evidence record's Id is duplicated within the validating documentbooleanGets if a structural validation of the evidence record is valid
-
Constructor Details
-
EvidenceRecordWrapper
Default constructor- Parameters:
evidenceRecord-XmlEvidenceRecord
-
-
Method Details
-
getId
Gets unique identifier- Returns:
String
-
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
Returns name of the evidence record's document, when applicable- Returns:
String
-
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
TimestampWrappers
-
getTimestampIdsList
Returns a list of time-stamp identifiers associated with the Evidence Record- Returns:
- a list of
Strings
-
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
public eu.europa.esig.dss.enumerations.EvidenceRecordTypeEnum getEvidenceRecordType()Gets the evidence record format type- Returns:
EvidenceRecordTypeEnum
-
getOrigin
public eu.europa.esig.dss.enumerations.EvidenceRecordOrigin getOrigin()Gets the origin of the evidence record- Returns:
EvidenceRecordOrigin
-
isEmbedded
public boolean isEmbedded()Gets whether the evidence record has been embedded into a signature (supported for XAdES and CAdES)- Returns:
- TRUE if the evidence record is embedded, FALSE otherwise
-
getParent
Returns a master-signature in case of a counter-signature- Returns:
SignatureWrapper
-
getIncorporationType
public eu.europa.esig.dss.enumerations.EvidenceRecordIncorporationType getIncorporationType()Gets the incorporation of the evidence record within an embedding signature. NOTE: applicable only for attached evidence records in CAdES.- Returns:
EvidenceRecordIncorporationType
-
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
Returns structural validation error messages, when applicable- Returns:
- a list of
Stringerror messages
-
getCoveredObjects
Returns a list of objects covered by the evidence record- Returns:
- a list of
XmlTimestampedObjects
-
getCoveredSignatures
Returns a list ofSignatureWrappers covered be the current evidence record- Returns:
- list of
SignatureWrappers
-
getCoveredCertificates
Returns a list of certificates covered be the current evidence record- Returns:
- list of
CertificateWrappers
-
getCoveredRevocations
Returns a list of revocation data covered be the current evidence record- Returns:
- list of
RevocationWrappers
-
getCoveredTimestamps
Returns a list of timestamps covered be the current evidence record- Returns:
- list of
TimestampWrappers
-
getCoveredEvidenceRecords
Returns a list of evidence records covered be the current evidence record- Returns:
- list of
EvidenceRecordWrappers
-
getCoveredSignedData
Returns a list of Signed data covered be the current evidence record- Returns:
- list of
SignerDataWrappers
-
getAllCoveredOrphanTokens
Returns a list of all OrphanTokens covered by the evidence record- Returns:
- list of
OrphanTokenWrappers
-
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
XmlSignatureScopes
-
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
-