Class ChainItem<T extends XmlConstraintsConclusion>
- java.lang.Object
-
- eu.europa.esig.dss.validation.process.ChainItem<T>
-
- Direct Known Subclasses:
AbstractCryptographicCheck,AbstractMultiValuesCheckItem,AbstractRevocationFreshCheck,AbstractValueCheckItem,AcceptableBasicSignatureValidationCheck,AcceptableBuildingBlockConclusionCheck,AcceptableTrustedListCheck,AdESAcceptableCheck,AllFilesSignedCheck,AuthorityInfoAccessPresentCheck,BestSignatureTimeAfterCertificateIssuanceAndBeforeCertificateExpirationCheck,BestSignatureTimeNotBeforeCertificateIssuanceCheck,BestSignatureTimeNotBeforeCertificateIssuanceCheck,CaQcCheck,CertificateExpirationCheck,CertificateIssuedByConsistentTrustServiceCheck,CertificateIssuedToLegalPersonCheck,CertificateIssuedToNaturalPersonCheck,CertificateNotSelfSignedCheck,CertificateOnHoldCheck,CertificatePathTrustedCheck,CertificateQualifiedCheck,CertificateRevokedCheck,CertificateSelfSignedCheck,CertificateSignatureValidCheck,CertificateSupportedByQSCDCheck,CertificateTypeCoverageCheck,CheckSubXCVResult,CommitmentTypeIndicationsCheck,ContentTimestampCheck,CounterSignatureCheck,CryptographicRevocationsCheck,CurrentTimeIndicationCheck,DigestValueMatchCheck,DigestValuePresentCheck,ForEsigCheck,ForeSignatureAtSigningTimeCheck,FullScopeCheck,GrantedStatusCheck,IdPkixOcspNoCheck,IsAbleToSelectOneTrustService,IssuerSerialMatchCheck,LongTermValidationCheck,ManifestEntryExistenceCheck,ManifestFilePresentCheck,MessageDigestOrSignedPropertiesCheck,MimeTypeFilePresentCheck,NextUpdateCheck,PastCertificateValidationAcceptableCheck,PastSignatureValidationCheck,PastTimestampValidation,POEExistsAtOrBeforeControlTimeCheck,POEExistsCheck,ProspectiveCertificateChainCheck,ProspectiveCertificateChainCheck,PseudoUsageCheck,QSCDCertificateAtSigningTimeCheck,QSCDCheck,QualifiedCertificateAtCertificateIssuanceCheck,QualifiedCertificateAtSigningTimeCheck,QualifiedCheck,ReferenceDataExistenceCheck,ReferenceDataIntactCheck,RevocationBasicBuildingBlocksCheck,RevocationCertHashMatchCheck,RevocationDataAvailableCheck,RevocationDateAfterBestSignatureTimeCheck,RevocationFreshnessCheckerResultCheck,RevocationInfoAccessPresentCheck,SatisfyingRevocationDataExistsCheck,SerialNumberCheck,ServiceConsistencyCheck,SignatureAcceptanceValidationResultCheck,SignatureBasicBuildingBlocksCheck,SignatureIntactCheck,SignaturePolicyHashValidCheck,SignaturePolicyIdentifiedCheck,SignerLocationCheck,SigningCertificateAttributePresentCheck,SigningCertificateRecognitionCheck,SigningTimeAttributePresentCheck,SigningTimeCheck,StructuralValidationCheck,TimestampBasicBuildingBlocksCheck,TimestampCoherenceOrderCheck,TimestampDelayCheck,TLFreshnessCheck,TLNotExpiredCheck,TLVersionCheck,TLWellSignedCheck,TrustedCertificateMatchTrustServiceCheck,ValidationTimeSlidingCheck,ZipCommentPresentCheck
public abstract class ChainItem<T extends XmlConstraintsConclusion> extends Object
This class is an item of theChainclass. That follows the design pattern "chain of responsibility". Depending of theLevelinLevelConstraintthe Chain will continue/stop the current treatment. TheChainItemis a validation constraint which allows to collect information, warnings, errors,...- See Also:
Chain
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChainItem(T result, LevelConstraint constraint)Common constructorprotectedChainItem(T result, LevelConstraint constraint, String bbbId)Specific constructor for Basic Building Blocks validation
-
Method Summary
Modifier and Type Method Description voidexecute()This method allows to execute the chain of responsibility.protected StringgetAdditionalInfo()protected abstract IMessageTaggetErrorMessageTag()protected abstract IndicationgetFailedIndicationForConclusion()protected abstract SubIndicationgetFailedSubIndicationForConclusion()protected abstract IMessageTaggetMessageTag()protected List<XmlName>getPreviousErrors()protected IndicationgetSuccessIndication()protected SubIndicationgetSuccessSubIndication()protected booleanisAcceptableConclusion(XmlConclusion conclusion)protected booleanisIndeterminateConclusion(XmlConclusion conclusion)protected booleanisInvalidConclusion(XmlConclusion conclusion)protected booleanisValid(XmlConstraintsConclusion constraintConclusion)protected booleanisValidConclusion(XmlConclusion conclusion)protected abstract booleanprocess()ChainItem<T>setNextItem(ChainItem<T> nextItem)This method allows to build the chain of responsibility
-
-
-
Constructor Detail
-
ChainItem
protected ChainItem(T result, LevelConstraint constraint)
Common constructor- Parameters:
result- theChainobject parent of this objectconstraint- theLevelConstraintto follow to execute this ChainItem
-
ChainItem
protected ChainItem(T result, LevelConstraint constraint, String bbbId)
Specific constructor for Basic Building Blocks validation- Parameters:
result- theChainobject parent of this objectconstraint- theLevelConstraintto follow to execute this ChainItembbbId- theXmlBasicBuildingBlocks's id
-
-
Method Detail
-
setNextItem
public ChainItem<T> setNextItem(ChainItem<T> nextItem)
This method allows to build the chain of responsibility- Parameters:
nextItem- the nextChainItemto call if this one succeed- Returns:
- the current item
-
execute
public void execute()
This method allows to execute the chain of responsibility. It will run all the chain until the firstLevel.FAILand not valid process.
-
process
protected abstract boolean process()
-
getMessageTag
protected abstract IMessageTag getMessageTag()
-
getErrorMessageTag
protected abstract IMessageTag getErrorMessageTag()
-
getFailedIndicationForConclusion
protected abstract Indication getFailedIndicationForConclusion()
-
getFailedSubIndicationForConclusion
protected abstract SubIndication getFailedSubIndicationForConclusion()
-
getAdditionalInfo
protected String getAdditionalInfo()
-
getSuccessIndication
protected Indication getSuccessIndication()
-
getSuccessSubIndication
protected SubIndication getSuccessSubIndication()
-
isValid
protected boolean isValid(XmlConstraintsConclusion constraintConclusion)
-
isValidConclusion
protected boolean isValidConclusion(XmlConclusion conclusion)
-
isInvalidConclusion
protected boolean isInvalidConclusion(XmlConclusion conclusion)
-
isIndeterminateConclusion
protected boolean isIndeterminateConclusion(XmlConclusion conclusion)
-
isAcceptableConclusion
protected boolean isAcceptableConclusion(XmlConclusion conclusion)
-
-