Interface CryptographicSuite

All Superinterfaces:
LevelRule
All Known Implementing Classes:
Abstract19322CryptographicSuite, CryptographicConstraintWrapper, CryptographicSuiteJsonWrapper, CryptographicSuiteXmlWrapper

public interface CryptographicSuite extends LevelRule
Contains policy for validation of cryptographic suites used on the signature or certificates
  • Method Details

    • getPolicyName

      String getPolicyName()
      Gets a cryptographic suite name
      Returns:
      String
    • getAcceptableDigestAlgorithms

      List<DigestAlgorithm> getAcceptableDigestAlgorithms()
      Gets a list of digest algorithms accepted by the validation policy
      Returns:
      a list of DigestAlgorithms
    • getAcceptableEncryptionAlgorithms

      List<EncryptionAlgorithm> getAcceptableEncryptionAlgorithms()
      Gets a list of encryption algorithms accepted by the validation policy
      Returns:
      a list of EncryptionAlgorithms
    • getAcceptableEncryptionAlgorithmsWithMinKeySizes

      List<EncryptionAlgorithmWithMinKeySize> getAcceptableEncryptionAlgorithmsWithMinKeySizes()
      Gets a list of encryption algorithms together with their minimum used key sizes accepted by the validation policy
      Returns:
      a list of EncryptionAlgorithmWithMinKeySizes
    • getAcceptableDigestAlgorithmsWithExpirationDates

      Map<DigestAlgorithm,Date> getAcceptableDigestAlgorithmsWithExpirationDates()
      Gets a map of supported digest algorithms with the corresponding expiration dates
      Returns:
      a map between DigestAlgorithms and expiration Dates
    • getAcceptableEncryptionAlgorithmsWithExpirationDates

      Map<EncryptionAlgorithmWithMinKeySize,Date> getAcceptableEncryptionAlgorithmsWithExpirationDates()
      Gets a map of supported encryption algorithms with the applicable key sizes with the corresponding expiration dates
      Returns:
      a map between EncryptionAlgorithmWithMinKeySizes and expiration Dates
    • setLevel

      void setLevel(Level level)
      Sets the global execution level for the cryptographic suite constraints
      Parameters:
      level - Level
    • getAcceptableDigestAlgorithmsLevel

      Level getAcceptableDigestAlgorithmsLevel()
      Returns a level constraint for AcceptableDigestAlgo constraint if present, the global getLevel otherwise.
      Returns:
      Level
    • setAcceptableDigestAlgorithmsLevel

      void setAcceptableDigestAlgorithmsLevel(Level acceptableDigestAlgorithmsLevel)
      Sets the execution level for the acceptable digest algorithms check
      Parameters:
      acceptableDigestAlgorithmsLevel - Level
    • getAcceptableEncryptionAlgorithmsLevel

      Level getAcceptableEncryptionAlgorithmsLevel()
      Returns a level constraint for AcceptableEncryptionAlgo constraint if present, the global getLevel otherwise.
      Returns:
      Level
    • setAcceptableEncryptionAlgorithmsLevel

      void setAcceptableEncryptionAlgorithmsLevel(Level acceptableEncryptionAlgorithmsLevel)
      Sets the execution level for the acceptable encryption algorithms check
      Parameters:
      acceptableEncryptionAlgorithmsLevel - Level
    • getAcceptableEncryptionAlgorithmsMiniKeySizeLevel

      Level getAcceptableEncryptionAlgorithmsMiniKeySizeLevel()
      Returns a level constraint for MiniPublicKeySize constraint if present, the global getLevel otherwise.
      Returns:
      Level
    • setAcceptableEncryptionAlgorithmsMiniKeySizeLevel

      void setAcceptableEncryptionAlgorithmsMiniKeySizeLevel(Level acceptableEncryptionAlgorithmsMiniKeySizeLevel)
      Sets the execution level for the acceptable minimum key sizes of encryption algorithms check
      Parameters:
      acceptableEncryptionAlgorithmsMiniKeySizeLevel - Level
    • getAlgorithmsExpirationDateLevel

      Level getAlgorithmsExpirationDateLevel()
      Returns a level constraint for AlgoExpirationDate constraint if present, the global getLevel otherwise.
      Returns:
      Level
    • setAlgorithmsExpirationDateLevel

      void setAlgorithmsExpirationDateLevel(Level algorithmsExpirationDateLevel)
      Sets the execution level for checking algorithms expiration
      Parameters:
      algorithmsExpirationDateLevel - Level
    • getAlgorithmsExpirationDateAfterUpdateLevel

      Level getAlgorithmsExpirationDateAfterUpdateLevel()
      Returns a level constraint for AlgoExpirationDate constraint if present, the global getLevel otherwise.
      Returns:
      Level
    • setAlgorithmsExpirationTimeAfterPolicyUpdateLevel

      void setAlgorithmsExpirationTimeAfterPolicyUpdateLevel(Level algorithmsExpirationTimeAfterPolicyUpdateLevel)
      Sets the execution level for checking algorithms expiration after the validation policy update Default : Level.WARN (warning message is returned in case of expiration of the used cryptographic constraints after the policy update date)
      Parameters:
      algorithmsExpirationTimeAfterPolicyUpdateLevel - Level
    • getCryptographicSuiteUpdateDate

      Date getCryptographicSuiteUpdateDate()
      Returns a date of the update of the cryptographic suites within the validation policy
      Returns:
      Date