Class SignatureAlgorithmCryptographicChecker

java.lang.Object
eu.europa.esig.dss.validation.process.Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlCC>
eu.europa.esig.dss.validation.process.bbb.aov.cc.AbstractAlgorithmCryptographicChecker
eu.europa.esig.dss.validation.process.bbb.aov.cc.SignatureAlgorithmCryptographicChecker

public class SignatureAlgorithmCryptographicChecker extends AbstractAlgorithmCryptographicChecker
Runs the cryptographic validation for a SignatureAlgorithm with a given key length
  • Constructor Details

    • SignatureAlgorithmCryptographicChecker

      public SignatureAlgorithmCryptographicChecker(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, eu.europa.esig.dss.enumerations.SignatureAlgorithm signatureAlgorithm, String keyLengthUsedToSignThisToken, Date validationDate, eu.europa.esig.dss.i18n.MessageTag position, eu.europa.esig.dss.model.policy.CryptographicSuite cryptographicSuite)
      Default constructor
      Parameters:
      i18nProvider - I18nProvider
      signatureAlgorithm - SignatureAlgorithm to validate
      keyLengthUsedToSignThisToken - String
      validationDate - Date
      position - MessageTag
      cryptographicSuite - CryptographicSuite
  • Method Details

    • initChain

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

      protected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> signatureAlgorithmReliable()
      Checks if the signatureAlgorithm is acceptable
      Returns:
      TRUE if the signatureAlgorithm is acceptable, FALSE otherwise
    • publicKeySizeKnown

      protected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> publicKeySizeKnown()
      Checks if the keyLengthUsedToSignThisToken is known
      Returns:
      TRUE if the keyLengthUsedToSignThisToken is known, FALSE otherwise
    • publicKeySizeAcceptable

      protected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> publicKeySizeAcceptable()
      Checks if the keyLengthUsedToSignThisToken is acceptable
      Returns:
      TRUE if the keyLengthUsedToSignThisToken is acceptable, FALSE otherwise
    • signatureAlgorithmOnValidationTime

      protected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> signatureAlgorithmOnValidationTime()
      Checks if the signatureAlgorithm is not expired in validation time
      Returns:
      TRUE if the signatureAlgorithm is not expired in validation time, FALSE otherwise
    • getAlgorithm

      protected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicAlgorithm getAlgorithm()
      Description copied from class: AbstractAlgorithmCryptographicChecker
      Builds and returns the validated algorithm
      Specified by:
      getAlgorithm in class AbstractAlgorithmCryptographicChecker
      Returns:
      XmlCryptographicAlgorithm
    • getNotAfter

      protected Date getNotAfter()
      Description copied from class: AbstractAlgorithmCryptographicChecker
      Returns time after which the used cryptographic algorithm(s) is no longer considered secure
      Specified by:
      getNotAfter in class AbstractAlgorithmCryptographicChecker
      Returns:
      Date