Class ChainItem<T extends XmlConstraintsConclusion>
java.lang.Object
eu.europa.esig.dss.validation.process.ChainItem<T>
- Direct Known Subclasses:
AbstractBasicBuildingBlocksCheck
,AbstractCryptographicCheck
,AbstractMultiValuesCheckItem
,AbstractRevocationFreshCheck
,AbstractTrustedListCheck
,AbstractValueCheckItem
,AcceptableBasicSignatureValidationCheck
,AcceptableBuildingBlockConclusionCheck
,AcceptableRevocationDataAvailableCheck
,AcceptableTrustedListPresenceCheck
,AdESAcceptableCheck
,AllFilesSignedCheck
,AuthorityInfoAccessPresentCheck
,BestSignatureTimeAfterCertificateIssuanceAndBeforeCertificateExpirationCheck
,BestSignatureTimeBeforeCertificateExpirationCheck
,BestSignatureTimeNotBeforeCertificateIssuanceCheck
,CaQcCheck
,CertificateExpirationCheck
,CertificateIssuedByConsistentTrustServiceCheck
,CertificateIssuedToLegalPersonCheck
,CertificateIssuedToNaturalPersonCheck
,CertificateNotSelfSignedCheck
,CertificateOnHoldCheck
,CertificateQualifiedCheck
,CertificateRevokedCheck
,CertificateSelfSignedCheck
,CertificateSignatureValidCheck
,CertificateSupportedByQSCDCheck
,CertificateTypeCoverageCheck
,CheckSubXCVResult
,CommitmentTypeIndicationsCheck
,ContentTimestampCheck
,CounterSignatureCheck
,CurrentTimeIndicationCheck
,DigestValueMatchCheck
,DigestValuePresentCheck
,ForEsigCheck
,ForeSignatureAtSigningTimeCheck
,FullScopeCheck
,GrantedStatusAtProductionTimeCheck
,GrantedStatusCheck
,IdPkixOcspNoCheck
,IsAbleToSelectOneTrustService
,IsQualificationConflictDetected
,IssuerSerialMatchCheck
,LongTermValidationCheck
,ManifestEntryExistenceCheck
,ManifestFilePresentCheck
,MessageDigestOrSignedPropertiesCheck
,MimeTypeFilePresentCheck
,NextUpdateCheck
,PastCertificateValidationAcceptableCheck
,PastSignatureValidationCheck
,PastTimestampValidation
,POEExistsAtOrBeforeControlTimeCheck
,POEExistsCheck
,ProspectiveCertificateChainCheck
,ProspectiveCertificateChainCheck
,PseudoUsageCheck
,QSCDCertificateAtSigningTimeCheck
,QSCDCheck
,QTSTCheck
,QualifiedCertificateAtCertificateIssuanceCheck
,QualifiedCertificateAtSigningTimeCheck
,QualifiedCheck
,ReferenceDataExistenceCheck
,ReferenceDataIntactCheck
,RevocationAcceptanceCheckerResultCheck
,RevocationCertHashMatchCheck
,RevocationCertHashPresenceCheck
,RevocationConsistentCheck
,RevocationDataAvailableCheck
,RevocationDataKnownCheck
,RevocationDateAfterBestSignatureTimeCheck
,RevocationFreshnessCheckerResultCheck
,RevocationInfoAccessPresentCheck
,SatisfyingRevocationDataExistsCheck
,SerialNumberCheck
,ServiceConsistencyCheck
,SignatureAcceptanceValidationResultCheck
,SignatureIntactCheck
,SignatureNotAmbiguousCheck
,SignaturePolicyHashValidCheck
,SignaturePolicyIdentifiedCheck
,SignedFilesPresentCheck
,SignerInformationStoreCheck
,SignerLocationCheck
,SigningCertificateAttributePresentCheck
,SigningCertificateRecognitionCheck
,SigningTimeAttributePresentCheck
,SigningTimeCheck
,StructuralValidationCheck
,TimestampCoherenceOrderCheck
,TimestampDelayCheck
,TLFreshnessCheck
,TLNotExpiredCheck
,TLVersionCheck
,TLWellSignedCheck
,TrustedCertificateMatchTrustServiceCheck
,TrustedListReachedForCertificateChainCheck
,UnicitySigningCertificateAttributeCheck
,ValidationTimeSlidingCheck
,ZipCommentPresentCheck
public abstract class ChainItem<T extends XmlConstraintsConclusion> extends Object
This class is an item of the
Chain
class.
That follows the design pattern "chain of responsibility".
Depending of the Level
in LevelConstraint
the Chain will continue/stop the current treatment. The
ChainItem
is a validation
constraint which allows to collect information, warnings, errors,...- See Also:
Chain
-
Field Summary
Fields Modifier and Type Field Description protected I18nProvider
i18nProvider
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChainItem(I18nProvider i18nProvider, T result, LevelConstraint constraint)
Common constructorprotected
ChainItem(I18nProvider i18nProvider, T result, LevelConstraint constraint, String bbbId)
Specific constructor for Basic Building Blocks validation -
Method Summary
Modifier and Type Method Description void
execute()
This method allows to execute the chain of responsibility.protected MessageTag
getAdditionalInfo()
protected abstract MessageTag
getErrorMessageTag()
Returns an i18n key String of an error message to getprotected abstract Indication
getFailedIndicationForConclusion()
protected abstract SubIndication
getFailedSubIndicationForConclusion()
protected abstract MessageTag
getMessageTag()
Returns an i18n key String of a message to getprotected List<XmlName>
getPreviousErrors()
protected Indication
getSuccessIndication()
protected SubIndication
getSuccessSubIndication()
protected boolean
isIndeterminateConclusion(XmlConclusion conclusion)
protected boolean
isInvalidConclusion(XmlConclusion conclusion)
protected boolean
isValid(XmlConstraintsConclusion constraintConclusion)
protected boolean
isValidConclusion(XmlConclusion conclusion)
protected abstract boolean
process()
ChainItem<T>
setNextItem(ChainItem<T> nextItem)
This method allows to build the chain of responsibility
-
Field Details
-
Constructor Details
-
ChainItem
Common constructor- Parameters:
i18nProvider
- theI18nProvider
internationalization providerresult
- theChain
object parent of this objectconstraint
- theLevelConstraint
to follow to execute this ChainItem
-
ChainItem
Specific constructor for Basic Building Blocks validation- Parameters:
i18nProvider
- theI18nProvider
internationalization providerresult
- theChain
object parent of this objectconstraint
- theLevelConstraint
to follow to execute this ChainItembbbId
- theXmlBasicBuildingBlocks
's id
-
-
Method Details
-
setNextItem
This method allows to build the chain of responsibility- Parameters:
nextItem
- the nextChainItem
to 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.FAIL
and not valid process. -
process
protected abstract boolean process() -
getMessageTag
Returns an i18n key String of a message to get- Returns:
MessageTag
key
-
getErrorMessageTag
Returns an i18n key String of an error message to get- Returns:
MessageTag
key
-
getPreviousErrors
-
getFailedIndicationForConclusion
-
getFailedSubIndicationForConclusion
-
getAdditionalInfo
-
getSuccessIndication
-
getSuccessSubIndication
-
isValid
-
isValidConclusion
-
isInvalidConclusion
-
isIndeterminateConclusion
-