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
TimestampTokens found in a DefaultAdvancedSignature object-
Constructor Summary
Constructors Constructor Description AbstractTimestampSource() -
Method Summary
Modifier and Type Method Description protected voidaddReference(List<TimestampedReference> referenceList, Identifier identifier, TimestampedObjectType category)Adds a reference for the given identifier and categoryprotected voidaddReference(List<TimestampedReference> referenceList, TimestampedReference referenceToAdd)AddsreferenceToAddtoreferenceListwithout duplicatesprotected voidaddReferences(List<TimestampedReference> referenceList, List<TimestampedReference> referencesToAdd)AddsreferencesToAddtoreferenceListwithout duplicatesprotected List<TimestampedReference>createReferencesForCertificates(Collection<CertificateToken> certificates)Creates a list ofTimestampedReferences for the provided list ofcertificatesprotected List<TimestampedReference>createReferencesForIdentifiers(Collection<? extends Identifier> identifiers, TimestampedObjectType timestampedObjectType)Creates a lit ofTimestampedReferences 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 thetimestampedTimestampprotected 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)AddsreferenceToAddtoreferenceListwithout duplicates- Parameters:
referenceList- - list ofTimestampedReferences to be extendedreferenceToAdd- -TimestampedReferenceto 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 ofTimestampedReferences to be extendedidentifier- -Identifierto be addedcategory- -TimestampedObjectTypeto be added
-
addReferences
protected void addReferences(List<TimestampedReference> referenceList, List<TimestampedReference> referencesToAdd)AddsreferencesToAddtoreferenceListwithout duplicates- Parameters:
referenceList- - list ofTimestampedReferences to be extendedreferencesToAdd- -TimestampedReferences to be added
-
getReferencesFromTimestamp
Incorporates all references from the giventimestampToken- Parameters:
timestampToken- aTimestampTokento extract values from- Returns:
- a list of
TimestampedReferences
-
getEncapsulatedValuesFromTimestamp
protected List<TimestampedReference> getEncapsulatedValuesFromTimestamp(TimestampToken timestampedTimestamp)Gets a list of all validation data embedded to thetimestampedTimestamp- Parameters:
timestampedTimestamp-TimestampTokento extract embedded values from- Returns:
- list of
TimestampedReferences
-
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 ofTimestampTokento get references from- Returns:
- a list of
TimestampedReferences
-
createReferencesForCertificates
protected List<TimestampedReference> createReferencesForCertificates(Collection<CertificateToken> certificates)Creates a list ofTimestampedReferences for the provided list ofcertificates- Parameters:
certificates- collection ofCertificateTokens- Returns:
- list of
TimestampedReferences
-
createReferencesForIdentifiers
protected List<TimestampedReference> createReferencesForIdentifiers(Collection<? extends Identifier> identifiers, TimestampedObjectType timestampedObjectType)Creates a lit ofTimestampedReferences from the identifiers of a given type- Parameters:
identifiers- a collection ofIdentifierstimestampedObjectType-TimestampedObjectTypeto create references with- Returns:
- a list of
TimestampedReferences
-