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 timestampsListCRLSourcegetCommonCRLSource()Returns a mergedListCRLSourcebetween signatureCRLSource and all embedded timestamp CRL sourcesListOCSPSourcegetCommonOCSPSource()Returns a mergedListOCSPSourcebetween signatureOCSPSource and all embedded timestamp OCSP sourcesList<TimestampToken>getContentTimestamps()List<TimestampToken>getDocumentTimestamps()List<TimestampToken>getSignatureTimestamps()List<TimestampToken>getTimestampsX1()List<TimestampToken>getTimestampsX2()
-
-
-
Method Detail
-
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
void addExternalTimestamp(TimestampToken timestamp)
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
-
getCommonCRLSource
ListCRLSource getCommonCRLSource()
Returns a mergedListCRLSourcebetween signatureCRLSource and all embedded timestamp CRL sources- Returns:
ListCRLSource
-
getCommonOCSPSource
ListOCSPSource getCommonOCSPSource()
Returns a mergedListOCSPSourcebetween signatureOCSPSource and all embedded timestamp OCSP sources- Returns:
ListOCSPSource
-
-