Module jpms_dss_validation
Class AbstractBasicValidationProcess<T extends eu.europa.esig.dss.detailedreport.jaxb.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 eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>
extends Chain<T>
The abstract class implementing the "5.3 Validation process for Basic Signatures" process
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap of BasicBuildingBlocksprotected final eu.europa.esig.dss.diagnostic.DiagnosticDataDiagnostic Dataprotected final eu.europa.esig.dss.diagnostic.TokenProxyThe token to be validatedFields inherited from class eu.europa.esig.dss.validation.process.Chain
firstItem, i18nProvider, result -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBasicValidationProcess(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T result, eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData, eu.europa.esig.dss.diagnostic.TokenProxy token, Map<String, eu.europa.esig.dss.detailedreport.jaxb.XmlBasicBuildingBlocks> bbbs) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbasicValidationProcess(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion xmlConclusion) Executes a final validation check of the "5.3 Validation process for Basic Signatures" blockprotected voidcollectAdditionalMessages(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion conclusion) The method allows to fill up additional messages into the conclusionprotected voidcollectMessages(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion conclusion, eu.europa.esig.dss.detailedreport.jaxb.XmlConstraint constraint) Collects required messages fromxmlConstraintto the givenconclusionNOTE: bye default the only one error is already collected in the chain (no more possible), therefore no need to collect it againcryptographicVerification(eu.europa.esig.dss.detailedreport.jaxb.XmlCV xmlCV) Executes "5.2.7 Cryptographic verification" building block for the given tokenformatChecking(eu.europa.esig.dss.detailedreport.jaxb.XmlFC xmlFC) Executes "5.2.2 Format Checking" building block for the given tokenprotected List<eu.europa.esig.dss.diagnostic.TimestampWrapper> Returns a list of content timestampsprotected eu.europa.esig.dss.detailedreport.jaxb.XmlValidationProcessBasicTimestampgetTimestampValidation(String timestampId) Gets the corresponding validation result for a timestamp with the given IdidentificationOfSigningCertificate(eu.europa.esig.dss.detailedreport.jaxb.XmlISC xmlISC) Executes "5.2.3 Identification of the signing certificate" building block for the given tokenprotected voidInitializes the chainsignatureAcceptanceValidation(eu.europa.esig.dss.detailedreport.jaxb.XmlSAV xmlSAV) Executes "5.2.8 Signature Acceptance Validation (SAV)" building block for the given tokenvalidationContextInitialization(eu.europa.esig.dss.detailedreport.jaxb.XmlVCI xmlVCI) Executes "5.2.4 Validation context initialization" building block for the given tokenx509CertificateValidation(eu.europa.esig.dss.detailedreport.jaxb.XmlXCV xmlXCV) Executes "5.2.6 X.509 certificate validation" building block for the given tokenMethods inherited from class eu.europa.esig.dss.validation.process.Chain
addAdditionalInfo, buildChainTitle, collectAllMessages, execute, getFailLevelConstraint, getInfoLevelConstraint, getTitle, getWarnLevelConstraint, isValid, isValidConclusion
-
Field Details
-
diagnosticData
protected final eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticDataDiagnostic Data -
token
protected final eu.europa.esig.dss.diagnostic.TokenProxy tokenThe token to be validated -
bbbs
-
-
Constructor Details
-
AbstractBasicValidationProcess
protected AbstractBasicValidationProcess(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T result, eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData, eu.europa.esig.dss.diagnostic.TokenProxy token, Map<String, eu.europa.esig.dss.detailedreport.jaxb.XmlBasicBuildingBlocks> bbbs) Default constructor- Parameters:
i18nProvider-I18nProviderresult-XmlConstraintsConclusiondiagnosticData-DiagnosticDatatoken-TokenProxybbbs- map of BasicBuildingBlocks
-
-
Method Details
-
initChain
-
formatChecking
-
identificationOfSigningCertificate
-
validationContextInitialization
-
x509CertificateValidation
-
cryptographicVerification
-
signatureAcceptanceValidation
-
basicValidationProcess
protected ChainItem<T> basicValidationProcess(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion xmlConclusion) Executes a final validation check of the "5.3 Validation process for Basic Signatures" block- Parameters:
xmlConclusion-XmlConclusioncontaining the result of the validation process for Basic Signatures- Returns:
ChainItem
-
getContentTimestamps
Returns a list of content timestamps- Returns:
- a list of
TimestampWrappers
-
getTimestampValidation
protected eu.europa.esig.dss.detailedreport.jaxb.XmlValidationProcessBasicTimestamp getTimestampValidation(String timestampId) Gets the corresponding validation result for a timestamp with the given Id- Parameters:
timestampId-StringId of a timestamp to get validation result for- Returns:
XmlValidationProcessBasicTimestamp
-
collectMessages
protected void collectMessages(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion conclusion, eu.europa.esig.dss.detailedreport.jaxb.XmlConstraint constraint) Description copied from class:ChainCollects required messages fromxmlConstraintto the givenconclusionNOTE: bye default the only one error is already collected in the chain (no more possible), therefore no need to collect it again- Overrides:
collectMessagesin classChain<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>- Parameters:
conclusion-XmlConclusionto fill upconstraint-XmlConstraintto extract messages from
-
collectAdditionalMessages
protected void collectAdditionalMessages(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion conclusion) Description copied from class:ChainThe method allows to fill up additional messages into the conclusion- Overrides:
collectAdditionalMessagesin classChain<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>- Parameters:
conclusion-XmlConclusionto fill up
-