Class AbstractCryptographicChecker

java.lang.Object
eu.europa.esig.dss.validation.process.Chain<XmlCC>
eu.europa.esig.dss.validation.process.bbb.sav.cc.AbstractCryptographicChecker
Direct Known Subclasses:
CryptographicChecker, DigestCryptographicChecker

public abstract class AbstractCryptographicChecker extends Chain<XmlCC>
Abstract class to perform cryptographic validation
  • Field Details

    • encryptionAlgorithm

      protected final EncryptionAlgorithm encryptionAlgorithm
      The Encryption algorithm
    • digestAlgorithm

      protected final DigestAlgorithm digestAlgorithm
      The Digest algorithm
    • maskGenerationFunction

      protected final MaskGenerationFunction maskGenerationFunction
      Mask generation function when present
    • keyLengthUsedToSignThisToken

      protected final String keyLengthUsedToSignThisToken
      Used Key length
    • validationDate

      protected final Date validationDate
      The validation time
    • constraintWrapper

      protected final CryptographicConstraintWrapper constraintWrapper
      Cryptographic constraint
    • position

      protected final MessageTag position
      The validation constraint position
  • Constructor Details

  • 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<XmlCC>
      Returns:
      MessageTag
    • isExpirationDateAvailable

      protected boolean isExpirationDateAvailable(DigestAlgorithm digestAlgorithm)
      Gets if the expiration date if defined for the given digestAlgorithm
      Parameters:
      digestAlgorithm - DigestAlgorithm to check expiration date for
      Returns:
      TRUE if expiration constrains are defines, FALSE otherwise
    • isExpirationDateAvailable

      protected boolean isExpirationDateAvailable(EncryptionAlgorithm encryptionAlgorithm, String keyLength)
      Gets if the expiration date if defined for the given encryptionAlgorithm and keyLength
      Parameters:
      encryptionAlgorithm - EncryptionAlgorithm to check expiration date for
      keyLength - String used to sign the token
      Returns:
      TRUE if expiration constrains are defines, FALSE otherwise
    • encryptionAlgorithmReliable

      protected ChainItem<XmlCC> encryptionAlgorithmReliable()
      Checks if the encryptionAlgorithm is acceptable
      Returns:
      TRUE if the encryptionAlgorithm is acceptable, FALSE otherwise
    • digestAlgorithmReliable

      protected ChainItem<XmlCC> digestAlgorithmReliable()
      Checks if the digestAlgorithm is acceptable
      Returns:
      TRUE if the digestAlgorithm is acceptable, FALSE otherwise
    • encryptionAlgorithmOnValidationTime

      protected ChainItem<XmlCC> encryptionAlgorithmOnValidationTime()
      Checks if the encryptionAlgorithm is not expired in validation time
      Returns:
      TRUE if the encryptionAlgorithm is not expired in validation time, FALSE otherwise
    • digestAlgorithmOnValidationTime

      protected ChainItem<XmlCC> digestAlgorithmOnValidationTime()
      Checks if the digestAlgorithm is not expired in validation time
      Returns:
      TRUE if the digestAlgorithm is not expired in validation time, FALSE otherwise
    • publicKeySizeKnown

      protected ChainItem<XmlCC> publicKeySizeKnown()
      Checks if the keyLengthUsedToSignThisToken is known
      Returns:
      TRUE if the keyLengthUsedToSignThisToken is known, FALSE otherwise
    • publicKeySizeAcceptable

      protected ChainItem<XmlCC> publicKeySizeAcceptable()
      Checks if the keyLengthUsedToSignThisToken is acceptable
      Returns:
      TRUE if the keyLengthUsedToSignThisToken is acceptable, FALSE otherwise
    • addAdditionalInfo

      protected void addAdditionalInfo()
      Description copied from class: Chain
      Adds additional info to the chain
      Overrides:
      addAdditionalInfo in class Chain<XmlCC>
    • getNotAfter

      protected Date getNotAfter()
      Returns time after which the used cryptographic algorithm(s) is no longer considered secure
      Returns:
      Date