Interface SignatureTimestampSource
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractTimestampSource,CAdESTimestampSource,PAdESTimestampSource,XAdESTimestampSource
public interface SignatureTimestampSource extends Serializable
-
Method Summary
Modifier and Type Method Description voidaddExternalTimestamp(TimestampToken timestamp)This method allows to add an external timestamp.List<TimestampToken>getAllTimestamps()List<TimestampToken>getArchiveTimestamps()Map<String,List<CertificateToken>>getCertificateMapWithinTimestamps(boolean skipLastArchiveTimestamp)Returns a map between all found timestamps and their certificatesList<CertificateToken>getCertificates()Returns a list of all found certificates in the timestampsList<TimestampToken>getContentTimestamps()List<TimestampToken>getDocumentTimestamps()List<TimestampToken>getSignatureTimestamps()ListCRLSourcegetTimestampCRLSources()Returns a mergedListCRLSourceof all embedded timestamp CRL sourcesListOCSPSourcegetTimestampOCSPSources()Returns a mergedListOCSPSourceof 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
-
getCertificateMapWithinTimestamps
Map<String,List<CertificateToken>> getCertificateMapWithinTimestamps(boolean skipLastArchiveTimestamp)Returns a map between all found timestamps and their certificates- Parameters:
skipLastArchiveTimestamp- in case if the last Archive Timestamp is not needed to be returned- Returns:
- a map between timestamp-id and list of related
CertificateTokens
-
getCertificates
List<CertificateToken> getCertificates()Returns a list of all found certificates in the timestamps- Returns:
- a list of
CertificateTokens
-
getTimestampCRLSources
ListCRLSource getTimestampCRLSources()Returns a mergedListCRLSourceof all embedded timestamp CRL sources- Returns:
ListCRLSource
-
getTimestampOCSPSources
ListOCSPSource getTimestampOCSPSources()Returns a mergedListOCSPSourceof all embedded timestamp OCSP sources- Returns:
ListOCSPSource
-