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
Modifier and TypeFieldDescriptionprotected final CertificateWrapper
Certificate to get a latest valid revocation data forprotected final Date
Validation 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
ConstructorDescriptionCertificateRevocationSelector
(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 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 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 XmlRAC
getRevocationAcceptanceValidationResult
(CertificateRevocationWrapper revocationWrapper) Returns a RevocationAcceptanceValidation result for the given revocation tokenprotected MessageTag
getTitle()
Returns title of a Chain (i.e.protected void
Initializes the chainverifyRevocationData
(ChainItem<XmlCRS> item, CertificateRevocationWrapper revocationWrapper) Verifies the given revocation data and returns the resultingChainItem
Methods 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
-I18nProvider
certificate
-CertificateWrapper
currentTime
-Date
validation 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
-I18nProvider
certificate
-CertificateWrapper
currentTime
-Date
validation timevalidationPolicy
-ValidationPolicy
validatedTokens
- a set of tokenString
identifiers that have been already processed
-
-
Method Details
-
getTitle
Description copied from class:Chain
Returns title of a Chain (i.e. BasicBuildingBlock title)- Overrides:
getTitle
in classChain<XmlCRS>
- Returns:
MessageTag
-
initChain
protected void initChain()Description copied from class:Chain
Initializes the chain -
getCertificateRevocationData
Returns available certificate revocation data to be validated- Returns:
- a list of
CertificateRevocationWrapper
s
-
verifyRevocationData
protected ChainItem<XmlCRS> verifyRevocationData(ChainItem<XmlCRS> item, CertificateRevocationWrapper revocationWrapper) Verifies the given revocation data and returns the resultingChainItem
- Parameters:
item
-ChainItem
the 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
Checks whether the acceptable revocation data is available- Returns:
ChainItem
-
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<XmlCRS>
- 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<XmlCRS>
- Parameters:
conclusion
-XmlConclusion
to fill up
-