Class Chain<T extends XmlConstraintsConclusion>
- java.lang.Object
-
- eu.europa.esig.dss.validation.process.Chain<T>
-
- Type Parameters:
T- the class used as result. The selected class must extendXmlConstraintsConclusionwhich contains some constraints and a conclusion.
- Direct Known Subclasses:
AbstractAcceptanceValidation,CertificateQualificationBlock,CertQualificationAtTimeBlock,CryptographicVerification,DigestAlgorithmAcceptanceValidation,FormatChecking,IdentificationOfTheSigningCertificate,PastCertificateValidation,PastSignatureValidation,RevocationFreshnessChecker,SignatureQualificationBlock,SubX509CertificateValidation,TLValidationBlock,ValidationContextInitialization,ValidationProcessForBasicSignatures,ValidationProcessForSignaturesWithArchivalData,ValidationProcessForSignaturesWithLongTermValidationData,ValidationProcessForTimeStamps,ValidationTimeSliding,X509CertificateValidation
public abstract class Chain<T extends XmlConstraintsConclusion> extends Object
This class is part of the design pattern "Chain of responsibility". All sub-classes need to implement the method initChain() which will define theChainItem(constraints) to execute. The chain is builded as follow with the methodChainItem.setNextItem(eu.europa.esig.dss.validation.process.ChainItem<T>).- See Also:
ChainItem
-
-
Method Summary
Modifier and Type Method Description protected voidaddAdditionalInfo()protected voidcollectErrorsWarnsInfos()Texecute()This method allows to initialize and execute the complete chain until the first failure.protected LevelConstraintgetFailLevelConstraint()protected LevelConstraintgetInfoLevelConstraint()protected LevelConstraintgetWarnLevelConstraint()protected abstract voidinitChain()
-
-
-
Field Detail
-
result
protected final T extends XmlConstraintsConclusion result
The result object : a sub-class ofXmlConstraintsConclusion
-
firstItem
protected ChainItem<T extends XmlConstraintsConclusion> firstItem
The first item to execute the chain
-
-
Constructor Detail
-
Chain
protected Chain(T newInstance)
Common constructor- Parameters:
newInstance- a new instance of the result object
-
-
Method Detail
-
execute
public T execute()
This method allows to initialize and execute the complete chain until the first failure.- Returns:
- the complete result with constraints and final conclusion for the chain
-
addAdditionalInfo
protected void addAdditionalInfo()
-
initChain
protected abstract void initChain()
-
getFailLevelConstraint
protected LevelConstraint getFailLevelConstraint()
-
getWarnLevelConstraint
protected LevelConstraint getWarnLevelConstraint()
-
getInfoLevelConstraint
protected LevelConstraint getInfoLevelConstraint()
-
collectErrorsWarnsInfos
protected void collectErrorsWarnsInfos()
-
-