Interface CryptographicSuite

All Superinterfaces:
LevelRule
All Known Implementing Classes:
CryptographicConstraintWrapper, CryptographicSuite19322

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

      Map<DigestAlgorithm, Set<CryptographicSuiteEvaluation>> getAcceptableDigestAlgorithms()
      Gets a map of DigestAlgorithm's extracted from a cryptographic suite and their corresponding CryptographicSuiteEvaluation rules
      Returns:
      a link between DigestAlgorithms and corresponding CryptographicSuiteEvaluations
    • getAcceptableSignatureAlgorithms

      Map<SignatureAlgorithm, Set<CryptographicSuiteEvaluation>> getAcceptableSignatureAlgorithms()
      Gets a map of SignatureAlgorithm's extracted from a cryptographic suite and their corresponding CryptographicSuiteEvaluation rules
      Returns:
      a link between SignatureAlgorithms and corresponding CryptographicSuiteEvaluations
    • 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
    • getAcceptableSignatureAlgorithmsLevel

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

      void setAcceptableSignatureAlgorithmsLevel(Level acceptableSignatureAlgorithmsLevel)
      Sets the execution level for the acceptable signature algorithms check
      Parameters:
      acceptableSignatureAlgorithmsLevel - Level
    • getAcceptableSignatureAlgorithmsMiniKeySizeLevel

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

      void setAcceptableSignatureAlgorithmsMiniKeySizeLevel(Level acceptableSignatureAlgorithmsMiniKeySizeLevel)
      Sets the execution level for the acceptable minimum key sizes of signature algorithms check
      Parameters:
      acceptableSignatureAlgorithmsMiniKeySizeLevel - 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