- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SignatureTimestampSource
The interface for handling validation data extracted from timestamps
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddExternalEvidenceRecord(EvidenceRecord evidenceRecord) This method allows to add an external evidence record.voidaddExternalTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestamp) This method allows to add an external timestamp.Returns a list of all evidence records associated with the signatureList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of all incorporated timestampsList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of allTimestampTokens except the last archive timestampList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of incorporated archive timestampsList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of incorporated content timestampsReturns a list of evidence records detached from a signature documentList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of detached timestamps (used in ASiC with CAdES)List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of incorporated document timestamps (PAdES only)Returns a list of evidence records embedded to a signature documentList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of incorporated signature timestampsList<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> Returns a list ofTimestampedReferences obtained from thesignatureScopeseu.europa.esig.dss.spi.x509.ListCertificateSourceReturns a mergedListCertificateSourceof all embedded timestamp certificate sourceseu.europa.esig.dss.spi.x509.ListCertificateSourceReturns a mergedListCertificateSourceof all embedded timestamp certificate sources except the latest Archive Timestampeu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> Returns a mergedListRevocationSourceof all embedded timestamp CRL sourceseu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> Returns a mergedListRevocationSourceof all embedded timestamp OCSP sourcesList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of incorporated SigAndRefs timestampsList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of incorporated RefsOnly timestampsList<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> Returns a list ofTimestampedReferences for all tokens embedded into unsigned properties of the signaturebooleanisTimestamped(String tokenId, eu.europa.esig.dss.enumerations.TimestampedObjectType objectType) Checks if a tokenId with the given Id is covered by the timestamp source
-
Method Details
-
getContentTimestamps
List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> getContentTimestamps()Returns a list of incorporated content timestamps- Returns:
- a list of
TimestampTokens
-
getSignatureTimestamps
List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> getSignatureTimestamps()Returns a list of incorporated signature timestamps- Returns:
- a list of
TimestampTokens
-
getTimestampsX1
List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> getTimestampsX1()Returns a list of incorporated SigAndRefs timestamps- Returns:
- a list of
TimestampTokens
-
getTimestampsX2
List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> getTimestampsX2()Returns a list of incorporated RefsOnly timestamps- Returns:
- a list of
TimestampTokens
-
getArchiveTimestamps
List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> getArchiveTimestamps()Returns a list of incorporated archive timestamps- Returns:
- a list of
TimestampTokens
-
getDocumentTimestamps
List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> getDocumentTimestamps()Returns a list of incorporated document timestamps (PAdES only)- Returns:
- a list of
TimestampTokens
-
getDetachedTimestamps
List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> getDetachedTimestamps()Returns a list of detached timestamps (used in ASiC with CAdES)- Returns:
- a list of
TimestampTokens
-
getAllTimestamps
List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> getAllTimestamps()Returns a list of all incorporated timestamps- Returns:
- a list of
TimestampTokens
-
addExternalTimestamp
void addExternalTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestamp) This method allows to add an external timestamp. The given timestamp must be processed before.- Parameters:
timestamp-TimestampTokenthe timestamp token
-
getEmbeddedEvidenceRecords
List<EvidenceRecord> getEmbeddedEvidenceRecords()Returns a list of evidence records embedded to a signature document- Returns:
- a list of
EvidenceRecords
-
getDetachedEvidenceRecords
List<EvidenceRecord> getDetachedEvidenceRecords()Returns a list of evidence records detached from a signature document- Returns:
- a list of
EvidenceRecords
-
getAllEvidenceRecords
List<EvidenceRecord> getAllEvidenceRecords()Returns a list of all evidence records associated with the signature- Returns:
- a list of
EvidenceRecords
-
addExternalEvidenceRecord
This method allows to add an external evidence record. The given evidence record must be processed before.- Parameters:
evidenceRecord-EvidenceRecordthe evidence record covering the signature file
-
getTimestampCertificateSources
eu.europa.esig.dss.spi.x509.ListCertificateSource getTimestampCertificateSources()Returns a mergedListCertificateSourceof all embedded timestamp certificate sources- Returns:
ListCertificateSource
-
getTimestampCertificateSourcesExceptLastArchiveTimestamp
eu.europa.esig.dss.spi.x509.ListCertificateSource getTimestampCertificateSourcesExceptLastArchiveTimestamp()Returns a mergedListCertificateSourceof all embedded timestamp certificate sources except the latest Archive Timestamp- Returns:
ListCertificateSource
-
getAllTimestampsExceptLastArchiveTimestamp
List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> getAllTimestampsExceptLastArchiveTimestamp()Returns a list of allTimestampTokens except the last archive timestamp- Returns:
- a list of
TimestampTokens
-
getTimestampCRLSources
eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> getTimestampCRLSources()Returns a mergedListRevocationSourceof all embedded timestamp CRL sources- Returns:
ListRevocationSource
-
getTimestampOCSPSources
eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> getTimestampOCSPSources()Returns a mergedListRevocationSourceof all embedded timestamp OCSP sources- Returns:
ListRevocationSource
-
getUnsignedPropertiesReferences
List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> getUnsignedPropertiesReferences()Returns a list ofTimestampedReferences for all tokens embedded into unsigned properties of the signature- Returns:
- a list of
TimestampedReferences
-
getSignerDataReferences
List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> getSignerDataReferences()Returns a list ofTimestampedReferences obtained from thesignatureScopes- Returns:
- list of
TimestampedReferences
-
isTimestamped
boolean isTimestamped(String tokenId, eu.europa.esig.dss.enumerations.TimestampedObjectType objectType) Checks if a tokenId with the given Id is covered by the timestamp source- Parameters:
tokenId-StringId of the token to checkobjectType-TimestampedObjectTypedefining the type of the token- Returns:
- TRUE if the token if covered by the timestamp source, FALSE otherwise
-