Interface CryptographicSuite
- All Superinterfaces:
LevelRule
- All Known Implementing Classes:
CryptographicSuite19322
Contains policy for validation of cryptographic suites used on the signature or certificates
-
Method Summary
Modifier and TypeMethodDescriptionMap<eu.europa.esig.dss.enumerations.DigestAlgorithm, Set<CryptographicSuiteEvaluation>> Gets a map of DigestAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationruleseu.europa.esig.dss.enumerations.LevelReturns a level constraint for AcceptableDigestAlgo constraint if present, the globalgetLevelotherwise.Map<eu.europa.esig.dss.enumerations.SignatureAlgorithm, Set<CryptographicSuiteEvaluation>> Gets a map of SignatureAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationruleseu.europa.esig.dss.enumerations.LevelReturns a level constraint for AcceptableEncryptionAlgo constraint if present, the globalgetLevelotherwise.eu.europa.esig.dss.enumerations.LevelReturns a level constraint for MiniPublicKeySize constraint if present, the globalgetLevelotherwise.eu.europa.esig.dss.enumerations.LevelReturns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevelotherwise.eu.europa.esig.dss.enumerations.LevelReturns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevelotherwise.Returns a date of the update of the cryptographic suites within the validation policyGets a cryptographic suite namevoidsetAcceptableDigestAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableDigestAlgorithmsLevel) Sets the execution level for the acceptable digest algorithms checkvoidsetAcceptableSignatureAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsLevel) Sets the execution level for the acceptable signature algorithms checkvoidsetAcceptableSignatureAlgorithmsMiniKeySizeLevel(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsMiniKeySizeLevel) Sets the execution level for the acceptable minimum key sizes of signature algorithms checkvoidsetAlgorithmsExpirationDateLevel(eu.europa.esig.dss.enumerations.Level algorithmsExpirationDateLevel) Sets the execution level for checking algorithms expirationvoidsetAlgorithmsExpirationTimeAfterPolicyUpdateLevel(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)voidsetLevel(eu.europa.esig.dss.enumerations.Level level) Sets the global execution level for the cryptographic suite constraints
-
Method Details
-
getPolicyName
-
getAcceptableDigestAlgorithms
Map<eu.europa.esig.dss.enumerations.DigestAlgorithm, Set<CryptographicSuiteEvaluation>> getAcceptableDigestAlgorithms()Gets a map of DigestAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationrules- Returns:
- a link between
DigestAlgorithms and correspondingCryptographicSuiteEvaluations
-
getAcceptableSignatureAlgorithms
Map<eu.europa.esig.dss.enumerations.SignatureAlgorithm, Set<CryptographicSuiteEvaluation>> getAcceptableSignatureAlgorithms()Gets a map of SignatureAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationrules- Returns:
- a link between
SignatureAlgorithms and correspondingCryptographicSuiteEvaluations
-
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 globalgetLevelotherwise.- 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 globalgetLevelotherwise.- 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 globalgetLevelotherwise.- 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 globalgetLevelotherwise.- 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 globalgetLevelotherwise.- 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
-