Class AbstractTimestampSource
java.lang.Object
eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
- Direct Known Subclasses:
PdfRevisionTimestampSource
,SignatureTimestampSource
public abstract class AbstractTimestampSource extends Object
Contains a set of
TimestampToken
s found in a DefaultAdvancedSignature
object-
Constructor Summary
Constructors Constructor Description AbstractTimestampSource()
-
Method Summary
Modifier and Type Method Description protected void
addReference(List<TimestampedReference> referenceList, Identifier identifier, TimestampedObjectType category)
Adds a reference for the given identifier and categoryprotected void
addReference(List<TimestampedReference> referenceList, TimestampedReference referenceToAdd)
AddsreferenceToAdd
toreferenceList
without duplicatesprotected void
addReferences(List<TimestampedReference> referenceList, List<TimestampedReference> referencesToAdd)
AddsreferencesToAdd
toreferenceList
without duplicatesprotected List<TimestampedReference>
createReferencesForCertificates(Collection<CertificateToken> certificates)
Creates a list ofTimestampedReference
s for the provided list ofcertificates
protected List<TimestampedReference>
createReferencesForIdentifiers(Collection<? extends Identifier> identifiers, TimestampedObjectType timestampedObjectType)
Creates a lit ofTimestampedReference
s from the identifiers of a given typeprotected List<TimestampedReference>
getEncapsulatedReferencesFromTimestamps(List<TimestampToken> timestampTokens)
Returns a list of TimestampedReferences for tokens encapsulated within the list of timestampTokensprotected List<TimestampedReference>
getEncapsulatedValuesFromTimestamp(TimestampToken timestampedTimestamp)
Gets a list of all validation data embedded to thetimestampedTimestamp
protected List<TimestampedReference>
getReferencesFromTimestamp(TimestampToken timestampToken)
Incorporates all references from the giventimestampToken
-
Constructor Details
-
AbstractTimestampSource
public AbstractTimestampSource()
-
-
Method Details
-
addReference
protected void addReference(List<TimestampedReference> referenceList, TimestampedReference referenceToAdd)AddsreferenceToAdd
toreferenceList
without duplicates- Parameters:
referenceList
- - list ofTimestampedReference
s to be extendedreferenceToAdd
- -TimestampedReference
to be added
-
addReference
protected void addReference(List<TimestampedReference> referenceList, Identifier identifier, TimestampedObjectType category)Adds a reference for the given identifier and category- Parameters:
referenceList
- - list ofTimestampedReference
s to be extendedidentifier
- -Identifier
to be addedcategory
- -TimestampedObjectType
to be added
-
addReferences
protected void addReferences(List<TimestampedReference> referenceList, List<TimestampedReference> referencesToAdd)AddsreferencesToAdd
toreferenceList
without duplicates- Parameters:
referenceList
- - list ofTimestampedReference
s to be extendedreferencesToAdd
- -TimestampedReference
s to be added
-
getReferencesFromTimestamp
Incorporates all references from the giventimestampToken
- Parameters:
timestampToken
- aTimestampToken
to extract values from- Returns:
- a list of
TimestampedReference
s
-
getEncapsulatedValuesFromTimestamp
protected List<TimestampedReference> getEncapsulatedValuesFromTimestamp(TimestampToken timestampedTimestamp)Gets a list of all validation data embedded to thetimestampedTimestamp
- Parameters:
timestampedTimestamp
-TimestampToken
to extract embedded values from- Returns:
- list of
TimestampedReference
s
-
getEncapsulatedReferencesFromTimestamps
protected List<TimestampedReference> getEncapsulatedReferencesFromTimestamps(List<TimestampToken> timestampTokens)Returns a list of TimestampedReferences for tokens encapsulated within the list of timestampTokens- Parameters:
timestampTokens
- a list ofTimestampToken
to get references from- Returns:
- a list of
TimestampedReference
s
-
createReferencesForCertificates
protected List<TimestampedReference> createReferencesForCertificates(Collection<CertificateToken> certificates)Creates a list ofTimestampedReference
s for the provided list ofcertificates
- Parameters:
certificates
- collection ofCertificateToken
s- Returns:
- list of
TimestampedReference
s
-
createReferencesForIdentifiers
protected List<TimestampedReference> createReferencesForIdentifiers(Collection<? extends Identifier> identifiers, TimestampedObjectType timestampedObjectType)Creates a lit ofTimestampedReference
s from the identifiers of a given type- Parameters:
identifiers
- a collection ofIdentifier
stimestampedObjectType
-TimestampedObjectType
to create references with- Returns:
- a list of
TimestampedReference
s
-