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 Details

    • token

      protected final T token
      The token to be validated
    • context

      protected final eu.europa.esig.dss.enumerations.Context context
      The validation context
    • validationDate

      protected final Date validationDate
      The validation time
    • validationPolicy

      protected final eu.europa.esig.dss.model.policy.ValidationPolicy validationPolicy
      Validation policy containing the corresponding cryptographic constraints
    • position

      protected eu.europa.esig.dss.i18n.MessageTag position
      Position of the token
    • cryptographicSuite

      protected eu.europa.esig.dss.model.policy.CryptographicSuite cryptographicSuite
      Cryptographic suite for the token's validation
    • signatureCryptographicValidation

      protected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation signatureCryptographicValidation
      The cryptographic information for the SignatureValue algorithms validation
    • signedAttributesCryptographicValidation

      protected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation signedAttributesCryptographicValidation
      The cryptographic information for the signed attributes algorithms validation
    • digestMatchersCryptographicValidation

      protected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation digestMatchersCryptographicValidation
      The cryptographic information for the digest matchers (signed references) algorithms validation
    • certificateChainCryptographicValidation

      protected List<eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicValidation> certificateChainCryptographicValidation
      The 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 translations
      token - instance of AbstractTokenProxy to be processed
      context - Context validation context
      validationDate - Date validation time
      validationPolicy - ValidationPolicy to be used during the validation
  • Method Details

    • getTitle

      protected eu.europa.esig.dss.i18n.MessageTag getTitle()
      Description copied from class: Chain
      Returns title of a Chain (i.e. BasicBuildingBlock title)
      Overrides:
      getTitle in class Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlAOV>
      Returns:
      MessageTag
    • initChain

      protected void initChain()
      Description copied from class: Chain
      Initializes the chain
      Specified by:
      initChain in class Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlAOV>
    • buildChain

      protected abstract ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlAOV> buildChain()
      Builds a chain of checks to be executed during the process
      Returns:
      ChainItem
    • getPosition

      protected eu.europa.esig.dss.i18n.MessageTag getPosition()
      Gets position of the currently verifying token, based on the context
      Returns:
      MessageTag
    • getCryptographicSuite

      protected eu.europa.esig.dss.model.policy.CryptographicSuite getCryptographicSuite()
      Gets the cryptographic suite based on the currently validating context
      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: Chain
      Adds additional info to the chain
      Overrides:
      addAdditionalInfo in class Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlAOV>