Class LongTermValidationCertificateRevocationSelector
java.lang.Object
eu.europa.esig.dss.validation.process.Chain<XmlCRS>
eu.europa.esig.dss.validation.process.bbb.xcv.crs.CertificateRevocationSelector
eu.europa.esig.dss.validation.process.vpfltvd.LongTermValidationCertificateRevocationSelector
- Direct Known Subclasses:
PastSignatureValidationCertificateRevocationSelector
,ValidationTimeSlidingCertificateRevocationSelector
Verifies and returns the latest acceptable revocation data for a long-term validation process
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<String,
XmlBasicBuildingBlocks> Map of BasicBuildingBlocksprotected final String
Id of a token being validated (e.g.Fields inherited from class eu.europa.esig.dss.validation.process.bbb.xcv.crs.CertificateRevocationSelector
certificate, currentTime, revocationDataValidityMap
Fields inherited from class eu.europa.esig.dss.validation.process.Chain
firstItem, i18nProvider, result
-
Constructor Summary
ModifierConstructorDescriptionLongTermValidationCertificateRevocationSelector
(I18nProvider i18nProvider, CertificateWrapper certificate, Date currentTime, DiagnosticData diagnosticData, Map<String, XmlBasicBuildingBlocks> bbbs, String tokenId, ValidationPolicy validationPolicy) Default constructorprotected
LongTermValidationCertificateRevocationSelector
(I18nProvider i18nProvider, CertificateWrapper certificate, Date currentTime, Map<String, XmlBasicBuildingBlocks> bbbs, String tokenId, ValidationPolicy validationPolicy) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionChecks whether the acceptable revocation data is availableprotected 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 againprotected XmlRAC
getRevocationAcceptanceValidationResult
(CertificateRevocationWrapper revocationWrapper) Returns a RevocationAcceptanceValidation result for the given revocation tokenprotected XmlConclusion
getRevocationBBBConclusion
(CertificateRevocationWrapper revocationWrapper) Returns a conclusion of the revocation basic building block execution processverifyRevocationData
(ChainItem<XmlCRS> item, CertificateRevocationWrapper revocationWrapper) Verifies the given revocation data and returns the resultingChainItem
Methods inherited from class eu.europa.esig.dss.validation.process.bbb.xcv.crs.CertificateRevocationSelector
collectAdditionalMessages, getCertificateRevocationData, getLatestAcceptableCertificateRevocation, getTitle, initChain
Methods inherited from class eu.europa.esig.dss.validation.process.Chain
addAdditionalInfo, buildChainTitle, collectAllMessages, execute, getFailLevelConstraint, getInfoLevelConstraint, getWarnLevelConstraint, isValid, isValidConclusion
-
Field Details
-
bbbs
Map of BasicBuildingBlocks -
tokenId
Id of a token being validated (e.g. signature id, timestamp id)
-
-
Constructor Details
-
LongTermValidationCertificateRevocationSelector
public LongTermValidationCertificateRevocationSelector(I18nProvider i18nProvider, CertificateWrapper certificate, Date currentTime, DiagnosticData diagnosticData, Map<String, XmlBasicBuildingBlocks> bbbs, String tokenId, ValidationPolicy validationPolicy) Default constructor- Parameters:
i18nProvider
-I18nProvider
certificate
-CertificateWrapper
currentTime
-Date
validation timediagnosticData
-DiagnosticData
bbbs
- a map ofXmlBasicBuildingBlocks
tokenId
-String
id of a token being validatedvalidationPolicy
-ValidationPolicy
-
LongTermValidationCertificateRevocationSelector
protected LongTermValidationCertificateRevocationSelector(I18nProvider i18nProvider, CertificateWrapper certificate, Date currentTime, Map<String, XmlBasicBuildingBlocks> bbbs, String tokenId, ValidationPolicy validationPolicy) Default constructor- Parameters:
i18nProvider
-I18nProvider
certificate
-CertificateWrapper
currentTime
-Date
validation timebbbs
- a map ofXmlBasicBuildingBlocks
tokenId
-String
id of a token being validatedvalidationPolicy
-ValidationPolicy
-
-
Method Details
-
verifyRevocationData
protected ChainItem<XmlCRS> verifyRevocationData(ChainItem<XmlCRS> item, CertificateRevocationWrapper revocationWrapper) Description copied from class:CertificateRevocationSelector
Verifies the given revocation data and returns the resultingChainItem
- Overrides:
verifyRevocationData
in classCertificateRevocationSelector
- Parameters:
item
-ChainItem
the last initialized chain item to be processed in prior to the revocation validationrevocationWrapper
-to be verified
- Returns:
ChainItem
-
getRevocationBBBConclusion
Returns a conclusion of the revocation basic building block execution process- Parameters:
revocationWrapper
-CertificateRevocationWrapper
- Returns:
XmlConclusion
-
getRevocationAcceptanceValidationResult
protected XmlRAC getRevocationAcceptanceValidationResult(CertificateRevocationWrapper revocationWrapper) Description copied from class:CertificateRevocationSelector
Returns a RevocationAcceptanceValidation result for the given revocation token- Overrides:
getRevocationAcceptanceValidationResult
in classCertificateRevocationSelector
- Parameters:
revocationWrapper
-CertificateRevocationWrapper
- Returns:
XmlRAC
-
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 classCertificateRevocationSelector
- Parameters:
conclusion
-XmlConclusion
to fill upconstraint
-XmlConstraint
to extract messages from
-
acceptableRevocationDataAvailable
Description copied from class:CertificateRevocationSelector
Checks whether the acceptable revocation data is available- Overrides:
acceptableRevocationDataAvailable
in classCertificateRevocationSelector
- Returns:
ChainItem
-