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 TypeMethodDescriptionbasicValidationProcess
(XmlConclusion xmlConclusion) Executes a final validation check of the "5.3 Validation process for Basic Signatures" blockprotected 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 againcryptographicVerification
(XmlCV xmlCV) Executes "5.2.7 Cryptographic verification" building block for the given tokenformatChecking
(XmlFC xmlFC) Executes "5.2.2 Format Checking" building block for the given tokenprotected List
<TimestampWrapper> Returns a list of content timestampsprotected XmlValidationProcessBasicTimestamp
getTimestampValidation
(String timestampId) Gets the corresponding validation result for a timestamp with the given IdExecutes "5.2.3 Identification of the signing certificate" building block for the given tokenprotected void
Initializes the chainsignatureAcceptanceValidation
(XmlSAV xmlSAV) Executes "5.2.8 Signature Acceptance Validation (SAV)" building block for the given tokenExecutes "5.2.4 Validation context initialization" building block for the given tokenx509CertificateValidation
(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
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>
-
formatChecking
-
identificationOfSigningCertificate
-
validationContextInitialization
-
x509CertificateValidation
-
cryptographicVerification
-
signatureAcceptanceValidation
-
basicValidationProcess
Executes a final validation check of the "5.3 Validation process for Basic Signatures" block- Parameters:
xmlConclusion
-XmlConclusion
containing the result of the validation process for Basic Signatures- Returns:
ChainItem
-
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:
XmlValidationProcessBasicTimestamp
-
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
-