Interface EvidenceRecord
- All Superinterfaces:
IdentifierBasedObject
- All Known Implementing Classes:
ASN1EvidenceRecord,DefaultEvidenceRecord,XmlEvidenceRecord
Representation of an Evidence Record
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddExternalEvidenceRecord(EvidenceRecord evidenceRecord) This method allows to add an external evidence record covering the current evidence record.Gets a certificate source which contains ALL certificates embedded in the evidence record.Gets a CRL source which contains ALL CRLs embedded in the evidence record.Returns detached contentsReturns a list of detached evidence records covering the current evidence record.byte[]Returns binaries of the evidence record documentReturns a list of covered archival data objectsReturns a name of the evidence record document, when presentgetId()This method returns the DSS unique signature id.Returns a manifest file associated with the evidence record (used in ASiC)Gets an OCSP source which contains ALL OCSP responses embedded in the evidence record.Returns type of the evidence recordReturns a list of archive data object validationsReturns a message if the structure validation failsReturns a list of references covered by the evidence recordReturns a list of incorporated timestamp tokensvoidsetEvidenceRecordScopes(List<SignatureScope> evidenceRecordScopes) Sets a list of covered archival data objectsvoidsetTimestampedReferences(List<TimestampedReference> timestampedReferences) Sets references to objects covered by the evidence recordMethods inherited from interface eu.europa.esig.dss.model.identifier.IdentifierBasedObject
getDSSId
-
Method Details
-
getFilename
-
getReferenceValidation
List<ReferenceValidation> getReferenceValidation()Returns a list of archive data object validations- Returns:
- a list of
ReferenceValidationobjects corresponding to each archive data object validation
-
getDetachedContents
List<DSSDocument> getDetachedContents()Returns detached contents- Returns:
- in the case of the detached signature this is the
Listof signed contents.
-
getCertificateSource
TokenCertificateSource getCertificateSource()Gets a certificate source which contains ALL certificates embedded in the evidence record.- Returns:
CertificateSource
-
getCRLSource
OfflineRevocationSource<CRL> getCRLSource()Gets a CRL source which contains ALL CRLs embedded in the evidence record.- Returns:
OfflineRevocationSource
-
getOCSPSource
OfflineRevocationSource<OCSP> getOCSPSource()Gets an OCSP source which contains ALL OCSP responses embedded in the evidence record.- Returns:
OfflineRevocationSource
-
getTimestamps
List<TimestampToken> getTimestamps()Returns a list of incorporated timestamp tokens- Returns:
- a list of
TimestampTokens
-
getDetachedEvidenceRecords
List<EvidenceRecord> getDetachedEvidenceRecords()Returns a list of detached evidence records covering the current evidence record.- Returns:
- a list of
EvidenceRecords
-
addExternalEvidenceRecord
This method allows to add an external evidence record covering the current evidence record.- Parameters:
evidenceRecord-EvidenceRecord
-
getEvidenceRecordScopes
List<SignatureScope> getEvidenceRecordScopes()Returns a list of covered archival data objects- Returns:
- a list of
SignatureScopes
-
setEvidenceRecordScopes
Sets a list of covered archival data objects- Parameters:
evidenceRecordScopes- a list ofSignatureScopes
-
getStructureValidationResult
-
getReferenceRecordType
EvidenceRecordTypeEnum getReferenceRecordType()Returns type of the evidence record- Returns:
EvidenceRecordTypeEnum
-
getManifestFile
ManifestFile getManifestFile()Returns a manifest file associated with the evidence record (used in ASiC)- Returns:
ManifestFile
-
getTimestampedReferences
List<TimestampedReference> getTimestampedReferences()Returns a list of references covered by the evidence record- Returns:
- a list of
TimestampedReferences
-
setTimestampedReferences
Sets references to objects covered by the evidence record- Parameters:
timestampedReferences- a list ofTimestampedReferences
-
getId
String getId()This method returns the DSS unique signature id. It allows to unambiguously identify each signature.- Returns:
- The signature unique Id
-
getEncoded
byte[] getEncoded()Returns binaries of the evidence record document- Returns:
- byte array
-