Interface CryptographicSuite

All Superinterfaces:
LevelRule
All Known Implementing Classes:
CryptographicSuite19322

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

    Modifier and Type
    Method
    Description
    Map<eu.europa.esig.dss.enumerations.DigestAlgorithm, Set<CryptographicSuiteEvaluation>>
    Gets a map of DigestAlgorithm's extracted from a cryptographic suite and their corresponding CryptographicSuiteEvaluation rules
    eu.europa.esig.dss.enumerations.Level
    Returns a level constraint for AcceptableDigestAlgo constraint if present, the global getLevel otherwise.
    Map<eu.europa.esig.dss.enumerations.SignatureAlgorithm, Set<CryptographicSuiteEvaluation>>
    Gets a map of SignatureAlgorithm's extracted from a cryptographic suite and their corresponding CryptographicSuiteEvaluation rules
    eu.europa.esig.dss.enumerations.Level
    Returns a level constraint for AcceptableEncryptionAlgo constraint if present, the global getLevel otherwise.
    eu.europa.esig.dss.enumerations.Level
    Returns a level constraint for MiniPublicKeySize constraint if present, the global getLevel otherwise.
    eu.europa.esig.dss.enumerations.Level
    Returns a level constraint for AlgoExpirationDate constraint if present, the global getLevel otherwise.
    eu.europa.esig.dss.enumerations.Level
    Returns a level constraint for AlgoExpirationDate constraint if present, the global getLevel otherwise.
    Returns a date of the update of the cryptographic suites within the validation policy
    Gets a cryptographic suite name
    void
    setAcceptableDigestAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableDigestAlgorithmsLevel)
    Sets the execution level for the acceptable digest algorithms check
    void
    setAcceptableSignatureAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsLevel)
    Sets the execution level for the acceptable signature algorithms check
    void
    setAcceptableSignatureAlgorithmsMiniKeySizeLevel(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsMiniKeySizeLevel)
    Sets the execution level for the acceptable minimum key sizes of signature algorithms check
    void
    setAlgorithmsExpirationDateLevel(eu.europa.esig.dss.enumerations.Level algorithmsExpirationDateLevel)
    Sets the execution level for checking algorithms expiration
    void
    setAlgorithmsExpirationTimeAfterPolicyUpdateLevel(eu.europa.esig.dss.enumerations.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)
    void
    setLevel(eu.europa.esig.dss.enumerations.Level level)
    Sets the global execution level for the cryptographic suite constraints

    Methods inherited from interface LevelRule

    getLevel
  • Method Details

    • getPolicyName

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

      Map<eu.europa.esig.dss.enumerations.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<eu.europa.esig.dss.enumerations.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(eu.europa.esig.dss.enumerations.Level level)
      Sets the global execution level for the cryptographic suite constraints
      Parameters:
      level - Level
    • getAcceptableDigestAlgorithmsLevel

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

      void setAcceptableDigestAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableDigestAlgorithmsLevel)
      Sets the execution level for the acceptable digest algorithms check
      Parameters:
      acceptableDigestAlgorithmsLevel - Level
    • getAcceptableSignatureAlgorithmsLevel

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

      void setAcceptableSignatureAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsLevel)
      Sets the execution level for the acceptable signature algorithms check
      Parameters:
      acceptableSignatureAlgorithmsLevel - Level
    • getAcceptableSignatureAlgorithmsMiniKeySizeLevel

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

      void setAcceptableSignatureAlgorithmsMiniKeySizeLevel(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsMiniKeySizeLevel)
      Sets the execution level for the acceptable minimum key sizes of signature algorithms check
      Parameters:
      acceptableSignatureAlgorithmsMiniKeySizeLevel - Level
    • getAlgorithmsExpirationDateLevel

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

      void setAlgorithmsExpirationDateLevel(eu.europa.esig.dss.enumerations.Level algorithmsExpirationDateLevel)
      Sets the execution level for checking algorithms expiration
      Parameters:
      algorithmsExpirationDateLevel - Level
    • getAlgorithmsExpirationDateAfterUpdateLevel

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

      void setAlgorithmsExpirationTimeAfterPolicyUpdateLevel(eu.europa.esig.dss.enumerations.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