Class AlgorithmObsolescenceValidation<T>
java.lang.Object
eu.europa.esig.dss.validation.process.Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlAOV>
eu.europa.esig.dss.validation.process.bbb.aov.AlgorithmObsolescenceValidation<T>
- Type Parameters:
T- validation token wrapper
- Direct Known Subclasses:
DigestAlgorithmObsolescenceValidation
public abstract class AlgorithmObsolescenceValidation<T>
extends Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlAOV>
This class performs validation of cryptographic algorithms against the provided cryptographic suite constraints.
The result of this block is used within XCV and SAV building blocks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation> The cryptographic information for the certificate chain algorithms validationprotected final eu.europa.esig.dss.enumerations.ContextThe validation contextprotected eu.europa.esig.dss.model.policy.CryptographicSuiteCryptographic suite for the token's validationprotected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidationThe cryptographic information for the digest matchers (signed references) algorithms validationprotected eu.europa.esig.dss.i18n.MessageTagPosition of the tokenprotected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidationThe cryptographic information for the SignatureValue algorithms validationprotected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidationThe cryptographic information for the signed attributes algorithms validationprotected final TThe token to be validatedprotected final DateThe validation timeprotected final eu.europa.esig.dss.model.policy.ValidationPolicyValidation policy containing the corresponding cryptographic constraintsFields inherited from class Chain
firstItem, i18nProvider, result -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAlgorithmObsolescenceValidation(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T token, eu.europa.esig.dss.enumerations.Context context, Date validationDate, eu.europa.esig.dss.model.policy.ValidationPolicy validationPolicy) Common constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds additional info to the chainprotected abstract ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlAOV> Builds a chain of checks to be executed during the processprotected eu.europa.esig.dss.model.policy.CryptographicSuiteGets the cryptographic suite based on the currently validatingcontextprotected eu.europa.esig.dss.i18n.MessageTagGets position of the currently verifying token, based on thecontextprotected eu.europa.esig.dss.i18n.MessageTaggetTitle()Returns title of a Chain (i.e.protected voidInitializes the chainprotected booleanisValid(eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation cryptographicValidation) Checks whether CryptographicValidation returned a successful validation resultMethods inherited from class Chain
buildChainTitle, collectAdditionalMessages, collectAllMessages, collectMessages, execute, getFailLevelRule, getInfoLevelRule, getWarnLevelRule, isValid, isValidConclusion
-
Field Details
-
token
The token to be validated -
context
protected final eu.europa.esig.dss.enumerations.Context contextThe validation context -
validationDate
The validation time -
validationPolicy
protected final eu.europa.esig.dss.model.policy.ValidationPolicy validationPolicyValidation policy containing the corresponding cryptographic constraints -
position
protected eu.europa.esig.dss.i18n.MessageTag positionPosition of the token -
cryptographicSuite
protected eu.europa.esig.dss.model.policy.CryptographicSuite cryptographicSuiteCryptographic suite for the token's validation -
signatureCryptographicValidation
protected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation signatureCryptographicValidationThe cryptographic information for the SignatureValue algorithms validation -
signedAttributesCryptographicValidation
protected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation signedAttributesCryptographicValidationThe cryptographic information for the signed attributes algorithms validation -
digestMatchersCryptographicValidation
protected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation digestMatchersCryptographicValidationThe cryptographic information for the digest matchers (signed references) algorithms validation -
certificateChainCryptographicValidation
protected List<eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation> certificateChainCryptographicValidationThe cryptographic information for the certificate chain algorithms validation
-
-
Constructor Details
-
AlgorithmObsolescenceValidation
protected AlgorithmObsolescenceValidation(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T token, eu.europa.esig.dss.enumerations.Context context, Date validationDate, eu.europa.esig.dss.model.policy.ValidationPolicy validationPolicy) Common constructor- Parameters:
i18nProvider- the access to translationstoken- instance ofAbstractTokenProxyto be processedcontext-Contextvalidation contextvalidationDate-Datevalidation timevalidationPolicy-ValidationPolicyto be used during the validation
-
-
Method Details
-
getTitle
-
initChain
-
buildChain
-
getPosition
protected eu.europa.esig.dss.i18n.MessageTag getPosition()Gets position of the currently verifying token, based on thecontext- Returns:
MessageTag
-
getCryptographicSuite
protected eu.europa.esig.dss.model.policy.CryptographicSuite getCryptographicSuite()Gets the cryptographic suite based on the currently validatingcontext- Returns:
CryptographicSuite
-
isValid
protected boolean isValid(eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation cryptographicValidation) Checks whether CryptographicValidation returned a successful validation result- Parameters:
cryptographicValidation-XmlCryptographicValidation- Returns:
- TRUE if the cryptographic validation was successful, FALSE otherwise
-
addAdditionalInfo
protected void addAdditionalInfo()Description copied from class:ChainAdds additional info to the chain- Overrides:
addAdditionalInfoin classChain<eu.europa.esig.dss.detailedreport.jaxb.XmlAOV>
-