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 voidaddExternalTimestamp(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()ListCertificateSourcegetTimestampCertificateSources()Returns a mergedListCertificateSourceof all embedded timestamp certificate sourcesListCertificateSourcegetTimestampCertificateSourcesExceptLastArchiveTimestamp()Returns a mergedListCertificateSourceof all embedded timestamp certificate sources except the latest Archive TimestampListRevocationSource<CRL>getTimestampCRLSources()Returns a mergedListRevocationSourceof all embedded timestamp CRL sourcesListRevocationSource<OCSP>getTimestampOCSPSources()Returns a mergedListRevocationSourceof 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 mergedListCertificateSourceof all embedded timestamp certificate sources- Returns:
ListCertificateSource
-
getTimestampCertificateSourcesExceptLastArchiveTimestamp
ListCertificateSource getTimestampCertificateSourcesExceptLastArchiveTimestamp()Returns a mergedListCertificateSourceof all embedded timestamp certificate sources except the latest Archive Timestamp- Returns:
ListCertificateSource
-
getTimestampCRLSources
ListRevocationSource<CRL> getTimestampCRLSources()Returns a mergedListRevocationSourceof all embedded timestamp CRL sources- Returns:
ListRevocationSource
-
getTimestampOCSPSources
ListRevocationSource<OCSP> getTimestampOCSPSources()Returns a mergedListRevocationSourceof all embedded timestamp OCSP sources- Returns:
ListRevocationSource
-