Class AbstractBasicValidationProcess<T extends XmlConstraintsConclusion>
java.lang.Object
eu.europa.esig.dss.validation.process.Chain<T>
eu.europa.esig.dss.validation.process.vpfbs.AbstractBasicValidationProcess<T>
- Type Parameters:
T
- implementation of the block's conclusion
- Direct Known Subclasses:
BasicSignatureValidationProcess
,RevocationBasicValidationProcess
,TimestampBasicValidationProcess
public abstract class AbstractBasicValidationProcess<T extends XmlConstraintsConclusion>
extends Chain<T>
The abstract class implementing the "5.3 Validation process for Basic Signatures" process
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<String,
XmlBasicBuildingBlocks> Map of BasicBuildingBlocksprotected final DiagnosticData
Diagnostic Dataprotected final TokenProxy
The token to be validatedFields inherited from class eu.europa.esig.dss.validation.process.Chain
firstItem, i18nProvider, result
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractBasicValidationProcess
(I18nProvider i18nProvider, T result, DiagnosticData diagnosticData, TokenProxy token, Map<String, XmlBasicBuildingBlocks> bbbs) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
collectAdditionalMessages
(XmlConclusion conclusion) The method allows to fill up additional messages into the conclusionprotected void
collectMessages
(XmlConclusion conclusion, XmlConstraint constraint) Collects required messages fromxmlConstraint
to the givenconclusion
NOTE: bye default the only one error is already collected in the chain (no more possible), therefore no need to collect it againprotected List<TimestampWrapper>
Returns a list of content timestampsprotected XmlValidationProcessTimestamp
getTimestampValidation
(String timestampId) Gets the corresponding validation result for a timestamp with the given Idprotected void
Initializes the chainMethods inherited from class eu.europa.esig.dss.validation.process.Chain
addAdditionalInfo, buildChainTitle, collectAllMessages, execute, getFailLevelConstraint, getInfoLevelConstraint, getTitle, getWarnLevelConstraint, isValid, isValidConclusion
-
Field Details
-
diagnosticData
Diagnostic Data -
token
The token to be validated -
bbbs
Map of BasicBuildingBlocks
-
-
Constructor Details
-
AbstractBasicValidationProcess
protected AbstractBasicValidationProcess(I18nProvider i18nProvider, T result, DiagnosticData diagnosticData, TokenProxy token, Map<String, XmlBasicBuildingBlocks> bbbs) Default constructor- Parameters:
i18nProvider
-I18nProvider
result
-XmlConstraintsConclusion
diagnosticData
-DiagnosticData
token
-TokenProxy
bbbs
- map of BasicBuildingBlocks
-
-
Method Details
-
initChain
protected void initChain()Description copied from class:Chain
Initializes the chain- Specified by:
initChain
in classChain<T extends XmlConstraintsConclusion>
-
getContentTimestamps
Returns a list of content timestamps- Returns:
- a list of
TimestampWrapper
s
-
getTimestampValidation
Gets the corresponding validation result for a timestamp with the given Id- Parameters:
timestampId
-String
Id of a timestamp to get validation result for- Returns:
XmlValidationProcessTimestamp
-
collectMessages
Description copied from class:Chain
Collects required messages fromxmlConstraint
to the givenconclusion
NOTE: bye default the only one error is already collected in the chain (no more possible), therefore no need to collect it again- Overrides:
collectMessages
in classChain<T extends XmlConstraintsConclusion>
- Parameters:
conclusion
-XmlConclusion
to fill upconstraint
-XmlConstraint
to extract messages from
-
collectAdditionalMessages
Description copied from class:Chain
The method allows to fill up additional messages into the conclusion- Overrides:
collectAdditionalMessages
in classChain<T extends XmlConstraintsConclusion>
- Parameters:
conclusion
-XmlConclusion
to fill up
-