Interface TimestampSource
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractTimestampSource
,CAdESTimestampSource
,PAdESTimestampSource
,XAdESTimestampSource
public interface TimestampSource extends Serializable
The interface for handling validation data extracted from timestamps
-
Method Summary
Modifier and Type Method Description void
addExternalTimestamp(TimestampToken timestamp)
This method allows to add an external timestamp.List<TimestampToken>
getAllTimestamps()
List<TimestampToken>
getArchiveTimestamps()
List<TimestampToken>
getContentTimestamps()
List<TimestampToken>
getDocumentTimestamps()
List<TimestampToken>
getSignatureTimestamps()
ListCertificateSource
getTimestampCertificateSources()
Returns a mergedListCertificateSource
of all embedded timestamp certificate sourcesListCertificateSource
getTimestampCertificateSourcesExceptLastArchiveTimestamp()
Returns a mergedListCertificateSource
of all embedded timestamp certificate sources except the latest Archive TimestampListRevocationSource<CRL>
getTimestampCRLSources()
Returns a mergedListRevocationSource
of all embedded timestamp CRL sourcesListRevocationSource<OCSP>
getTimestampOCSPSources()
Returns a mergedListRevocationSource
of all embedded timestamp OCSP sourcesList<TimestampToken>
getTimestampsX1()
List<TimestampToken>
getTimestampsX2()
-
Method Details
-
getContentTimestamps
List<TimestampToken> getContentTimestamps() -
getSignatureTimestamps
List<TimestampToken> getSignatureTimestamps() -
getTimestampsX1
List<TimestampToken> getTimestampsX1() -
getTimestampsX2
List<TimestampToken> getTimestampsX2() -
getArchiveTimestamps
List<TimestampToken> getArchiveTimestamps() -
getDocumentTimestamps
List<TimestampToken> getDocumentTimestamps() -
getAllTimestamps
List<TimestampToken> getAllTimestamps() -
addExternalTimestamp
This method allows to add an external timestamp. The given timestamp must be processed before.- Parameters:
timestamp
- the timestamp token
-
getTimestampCertificateSources
ListCertificateSource getTimestampCertificateSources()Returns a mergedListCertificateSource
of all embedded timestamp certificate sources- Returns:
ListCertificateSource
-
getTimestampCertificateSourcesExceptLastArchiveTimestamp
ListCertificateSource getTimestampCertificateSourcesExceptLastArchiveTimestamp()Returns a mergedListCertificateSource
of all embedded timestamp certificate sources except the latest Archive Timestamp- Returns:
ListCertificateSource
-
getTimestampCRLSources
ListRevocationSource<CRL> getTimestampCRLSources()Returns a mergedListRevocationSource
of all embedded timestamp CRL sources- Returns:
ListRevocationSource
-
getTimestampOCSPSources
ListRevocationSource<OCSP> getTimestampOCSPSources()Returns a mergedListRevocationSource
of all embedded timestamp OCSP sources- Returns:
ListRevocationSource
-