Class CertificateRevocationSelector
java.lang.Object
eu.europa.esig.dss.validation.process.Chain<XmlCRS>
eu.europa.esig.dss.validation.process.bbb.xcv.crs.CertificateRevocationSelector
- Direct Known Subclasses:
LongTermValidationCertificateRevocationSelector
This class validates revocation data for a given certificate and returns the latest valid entry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CertificateWrapperCertificate to get a latest valid revocation data forprotected final DateValidation timeprotected final Map<RevocationWrapper, Boolean> This map contains validation results of the revocation data processingFields inherited from class eu.europa.esig.dss.validation.process.Chain
firstItem, i18nProvider, result -
Constructor Summary
ConstructorsConstructorDescriptionCertificateRevocationSelector(I18nProvider i18nProvider, CertificateWrapper certificate, Date currentTime, ValidationPolicy validationPolicy) Default constructorCertificateRevocationSelector(I18nProvider i18nProvider, CertificateWrapper certificate, Date currentTime, ValidationPolicy validationPolicy, Set<String> validatedTokens) Constructor with a set of validated tokens -
Method Summary
Modifier and TypeMethodDescriptionChecks whether the acceptable revocation data is availableprotected voidcollectAdditionalMessages(XmlConclusion conclusion) The method allows to fill up additional messages into the conclusionprotected voidcollectMessages(XmlConclusion conclusion, 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 againprotected List<CertificateRevocationWrapper> Returns available certificate revocation data to be validatedThis method returns the latest acceptable certificate revocation data NOTE: methodexecute()shall be called beforeprotected XmlRACgetRevocationAcceptanceValidationResult(CertificateRevocationWrapper revocationWrapper) Returns a RevocationAcceptanceValidation result for the given revocation tokenprotected MessageTaggetTitle()Returns title of a Chain (i.e.protected voidInitializes the chainverifyRevocationData(ChainItem<XmlCRS> item, CertificateRevocationWrapper revocationWrapper) Verifies the given revocation data and returns the resultingChainItemMethods inherited from class eu.europa.esig.dss.validation.process.Chain
addAdditionalInfo, buildChainTitle, collectAllMessages, execute, getFailLevelConstraint, getInfoLevelConstraint, getWarnLevelConstraint, isValid, isValidConclusion
-
Field Details
-
certificate
Certificate to get a latest valid revocation data for -
currentTime
Validation time -
revocationDataValidityMap
This map contains validation results of the revocation data processing
-
-
Constructor Details
-
CertificateRevocationSelector
public CertificateRevocationSelector(I18nProvider i18nProvider, CertificateWrapper certificate, Date currentTime, ValidationPolicy validationPolicy) Default constructor- Parameters:
i18nProvider-I18nProvidercertificate-CertificateWrappercurrentTime-Datevalidation timevalidationPolicy-ValidationPolicy
-
CertificateRevocationSelector
public CertificateRevocationSelector(I18nProvider i18nProvider, CertificateWrapper certificate, Date currentTime, ValidationPolicy validationPolicy, Set<String> validatedTokens) Constructor with a set of validated tokens- Parameters:
i18nProvider-I18nProvidercertificate-CertificateWrappercurrentTime-Datevalidation timevalidationPolicy-ValidationPolicyvalidatedTokens- a set of tokenStringidentifiers that have been already processed
-
-
Method Details
-
getTitle
Description copied from class:ChainReturns title of a Chain (i.e. BasicBuildingBlock title)- Overrides:
getTitlein classChain<XmlCRS>- Returns:
MessageTag
-
initChain
-
getCertificateRevocationData
Returns available certificate revocation data to be validated- Returns:
- a list of
CertificateRevocationWrappers
-
verifyRevocationData
protected ChainItem<XmlCRS> verifyRevocationData(ChainItem<XmlCRS> item, CertificateRevocationWrapper revocationWrapper) Verifies the given revocation data and returns the resultingChainItem- Parameters:
item-ChainItemthe last initialized chain item to be processed in prior to the revocation validationrevocationWrapper-to be verified- Returns:
ChainItem
-
getRevocationAcceptanceValidationResult
protected XmlRAC getRevocationAcceptanceValidationResult(CertificateRevocationWrapper revocationWrapper) Returns a RevocationAcceptanceValidation result for the given revocation token- Parameters:
revocationWrapper-CertificateRevocationWrapper- Returns:
XmlRAC
-
getLatestAcceptableCertificateRevocation
This method returns the latest acceptable certificate revocation data NOTE: methodexecute()shall be called before- Returns:
CertificateRevocationWrapper
-
acceptableRevocationDataAvailable
-
collectMessages
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<XmlCRS>- Parameters:
conclusion-XmlConclusionto fill upconstraint-XmlConstraintto extract messages from
-
collectAdditionalMessages
Description copied from class:ChainThe method allows to fill up additional messages into the conclusion- Overrides:
collectAdditionalMessagesin classChain<XmlCRS>- Parameters:
conclusion-XmlConclusionto fill up
-