Class AlgorithmObsolescenceValidation<T>

java.lang.Object
eu.europa.esig.dss.validation.process.Chain<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<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 Context context
      The validation context
    • validationDate

      protected final Date validationDate
      The validation time
    • validationPolicy

      protected final ValidationPolicy validationPolicy
      Validation policy containing the corresponding cryptographic constraints
    • position

      protected MessageTag position
      Position of the token
    • cryptographicSuite

      protected CryptographicSuite cryptographicSuite
      Cryptographic suite for the token's validation
    • signatureCryptographicValidation

      protected XmlCryptographicValidation signatureCryptographicValidation
      The cryptographic information for the SignatureValue algorithms validation
    • signedAttributesCryptographicValidation

      protected XmlCryptographicValidation signedAttributesCryptographicValidation
      The cryptographic information for the signed attributes algorithms validation
    • digestMatchersCryptographicValidation

      protected XmlCryptographicValidation digestMatchersCryptographicValidation
      The cryptographic information for the digest matchers (signed references) algorithms validation
    • certificateChainCryptographicValidation

      protected List<XmlCryptographicValidation> certificateChainCryptographicValidation
      The cryptographic information for the certificate chain algorithms validation
  • Constructor Details

    • AlgorithmObsolescenceValidation

      protected AlgorithmObsolescenceValidation(I18nProvider i18nProvider, T token, Context context, Date validationDate, 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 MessageTag getTitle()
      Description copied from class: Chain
      Returns title of a Chain (i.e. BasicBuildingBlock title)
      Overrides:
      getTitle in class Chain<XmlAOV>
      Returns:
      MessageTag
    • initChain

      protected void initChain()
      Description copied from class: Chain
      Initializes the chain
      Specified by:
      initChain in class Chain<XmlAOV>
    • buildChain

      protected abstract ChainItem<XmlAOV> buildChain()
      Builds a chain of checks to be executed during the process
      Returns:
      ChainItem
    • getPosition

      protected MessageTag getPosition()
      Gets position of the currently verifying token, based on the context
      Returns:
      MessageTag
    • getCryptographicSuite

      protected CryptographicSuite getCryptographicSuite()
      Gets the cryptographic suite based on the currently validating context
      Returns:
      CryptographicSuite
    • isValid

      protected boolean isValid(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<XmlAOV>