Package eu.europa.esig.dss.validation
Class ValidationDataContainer
java.lang.Object
eu.europa.esig.dss.validation.ValidationDataContainer
- Direct Known Subclasses:
PdfValidationDataContainer
Contains a
ValidationData
for a list of signatures/timestamps-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating empty maps of tokens and validation data relationships -
Method Summary
Modifier and TypeMethodDescriptionvoid
addValidationData
(AdvancedSignature signature, ValidationData validationData) Adds validation data to the containervoid
addValidationData
(TimestampToken timestampToken, ValidationData validationData) Adds validation data to the containerReturns a combined validation data for all tokensReturns a complete validation data for a signature, including the data for incorporated timestamps and/or counter-signaturesReturns a complete validation data for a signature, including the data for incorporated timestamps and/or counter-signatures, but excluding the tokens already incorporated within the signatureReturns a collection ofTimestampToken
sReturns a collection ofAdvancedSignature
sgetValidationData
(AdvancedSignature signature) Returns a relatedValidationData
for the given token idgetValidationData
(TimestampToken timestampToken) Returns a relatedValidationData
for the given token idboolean
isEmpty()
Checks if the validation data for inclusion if empty
-
Constructor Details
-
ValidationDataContainer
public ValidationDataContainer()Default constructor instantiating empty maps of tokens and validation data relationships
-
-
Method Details
-
addValidationData
Adds validation data to the container- Parameters:
signature
-AdvancedSignature
validationData
-ValidationData
-
addValidationData
Adds validation data to the container- Parameters:
timestampToken
-TimestampToken
validationData
-ValidationData
-
getValidationData
Returns a relatedValidationData
for the given token id- Parameters:
signature
-AdvancedSignature
to getValidationData
for- Returns:
ValidationData
-
getValidationData
Returns a relatedValidationData
for the given token id- Parameters:
timestampToken
-TimestampToken
to getValidationData
for- Returns:
ValidationData
-
getAllValidationData
Returns a combined validation data for all tokens- Returns:
ValidationData
-
getSignatures
Returns a collection ofAdvancedSignature
s- Returns:
- a collection of
AdvancedSignature
s
-
getDetachedTimestamps
Returns a collection ofTimestampToken
s- Returns:
- a collection of
TimestampToken
s
-
isEmpty
public boolean isEmpty()Checks if the validation data for inclusion if empty- Returns:
- TRUE if the validation data container is empty, FALSE otherwise
-
getAllValidationDataForSignature
Returns a complete validation data for a signature, including the data for incorporated timestamps and/or counter-signatures- Parameters:
signature
-AdvancedSignature
to extract validation data for- Returns:
ValidationData
-
getCompleteValidationDataForSignature
Returns a complete validation data for a signature, including the data for incorporated timestamps and/or counter-signatures, but excluding the tokens already incorporated within the signature- Parameters:
signature
-AdvancedSignature
to extract validation data for- Returns:
ValidationData
-