Interface TimestampSource
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CAdESTimestampSource
,JAdESTimestampSource
,PAdESTimestampSource
,SignatureTimestampSource
,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()
Returns a list of all incorporated timestampsList<TimestampToken>
getArchiveTimestamps()
Returns a list of incorporated archive timestampsList<TimestampToken>
getContentTimestamps()
Returns a list of incorporated content timestampsList<TimestampToken>
getDocumentTimestamps()
Returns a list of incorporated document timestamps (PAdES only)List<TimestampToken>
getSignatureTimestamps()
Returns a list of incorporated signature timestampsList<TimestampedReference>
getSignerDataReferences()
Returns a list ofTimestampedReference
s obtained from thesignatureScopes
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()
Returns a list of incorporated SigAndRefs timestampsList<TimestampToken>
getTimestampsX2()
Returns a list of incorporated RefsOnly timestampsList<TimestampedReference>
getUnsignedPropertiesReferences()
Returns a list ofTimestampedReference
s for all tokens embedded into unsigned properties of the signatureboolean
isTimestamped(String tokenId, TimestampedObjectType objectType)
Checks if a tokenId with the given Id is covered by the timestamp source
-
Method Details
-
getContentTimestamps
List<TimestampToken> getContentTimestamps()Returns a list of incorporated content timestamps- Returns:
- a list of
TimestampToken
s
-
getSignatureTimestamps
List<TimestampToken> getSignatureTimestamps()Returns a list of incorporated signature timestamps- Returns:
- a list of
TimestampToken
s
-
getTimestampsX1
List<TimestampToken> getTimestampsX1()Returns a list of incorporated SigAndRefs timestamps- Returns:
- a list of
TimestampToken
s
-
getTimestampsX2
List<TimestampToken> getTimestampsX2()Returns a list of incorporated RefsOnly timestamps- Returns:
- a list of
TimestampToken
s
-
getArchiveTimestamps
List<TimestampToken> getArchiveTimestamps()Returns a list of incorporated archive timestamps- Returns:
- a list of
TimestampToken
s
-
getDocumentTimestamps
List<TimestampToken> getDocumentTimestamps()Returns a list of incorporated document timestamps (PAdES only)- Returns:
- a list of
TimestampToken
s
-
getAllTimestamps
List<TimestampToken> getAllTimestamps()Returns a list of all incorporated timestamps- Returns:
- a list of
TimestampToken
s
-
addExternalTimestamp
This method allows to add an external timestamp. The given timestamp must be processed before.- Parameters:
timestamp
-TimestampToken
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
-
getUnsignedPropertiesReferences
List<TimestampedReference> getUnsignedPropertiesReferences()Returns a list ofTimestampedReference
s for all tokens embedded into unsigned properties of the signature- Returns:
- a list of
TimestampedReference
s
-
getSignerDataReferences
List<TimestampedReference> getSignerDataReferences()Returns a list ofTimestampedReference
s obtained from thesignatureScopes
- Returns:
- list of
TimestampedReference
s
-
isTimestamped
Checks if a tokenId with the given Id is covered by the timestamp source- Parameters:
tokenId
-String
Id of the token to checkobjectType
-TimestampedObjectType
defining the type of the token- Returns:
- TRUE if the token if covered by the timestamp source, FALSE otherwise
-