- All Superinterfaces:
LevelRule
- All Known Implementing Classes:
Abstract19322CryptographicSuite
Contains policy for validation of cryptographic suites used on the signature or certificates
-
Method Summary
Modifier and TypeMethodDescriptionList<eu.europa.esig.dss.enumerations.DigestAlgorithm> Gets a list of digest algorithms accepted by the validation policyeu.europa.esig.dss.enumerations.LevelReturns a level constraint for AcceptableDigestAlgo constraint if present, the globalgetLevelotherwise.Gets a map of supported digest algorithms with the corresponding expiration datesList<eu.europa.esig.dss.enumerations.EncryptionAlgorithm> Gets a list of encryption algorithms accepted by the validation policyeu.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.Gets a map of supported encryption algorithms with the applicable key sizes with the corresponding expiration datesGets a list of encryption algorithms together with their minimum used key sizes accepted by the validation policyeu.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 checkvoidsetAcceptableEncryptionAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableEncryptionAlgorithmsLevel) Sets the execution level for the acceptable encryption algorithms checkvoidsetAcceptableEncryptionAlgorithmsMiniKeySizeLevel(eu.europa.esig.dss.enumerations.Level acceptableEncryptionAlgorithmsMiniKeySizeLevel) Sets the execution level for the acceptable minimum key sizes of encryption 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
String getPolicyName()Gets a cryptographic suite name- Returns:
String
-
getAcceptableDigestAlgorithms
List<eu.europa.esig.dss.enumerations.DigestAlgorithm> getAcceptableDigestAlgorithms()Gets a list of digest algorithms accepted by the validation policy- Returns:
- a list of
DigestAlgorithms
-
getAcceptableEncryptionAlgorithms
List<eu.europa.esig.dss.enumerations.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<eu.europa.esig.dss.enumerations.DigestAlgorithm,Date> getAcceptableDigestAlgorithmsWithExpirationDates()Gets a map of supported digest algorithms with the corresponding expiration dates- Returns:
- a map between
DigestAlgorithms and expirationDates
-
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 expirationDates
-
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
-
getAcceptableEncryptionAlgorithmsLevel
eu.europa.esig.dss.enumerations.Level getAcceptableEncryptionAlgorithmsLevel()Returns a level constraint for AcceptableEncryptionAlgo constraint if present, the globalgetLevelotherwise.- Returns:
Level
-
setAcceptableEncryptionAlgorithmsLevel
void setAcceptableEncryptionAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableEncryptionAlgorithmsLevel) Sets the execution level for the acceptable encryption algorithms check- Parameters:
acceptableEncryptionAlgorithmsLevel-Level
-
getAcceptableEncryptionAlgorithmsMiniKeySizeLevel
eu.europa.esig.dss.enumerations.Level getAcceptableEncryptionAlgorithmsMiniKeySizeLevel()Returns a level constraint for MiniPublicKeySize constraint if present, the globalgetLevelotherwise.- Returns:
Level
-
setAcceptableEncryptionAlgorithmsMiniKeySizeLevel
void setAcceptableEncryptionAlgorithmsMiniKeySizeLevel(eu.europa.esig.dss.enumerations.Level acceptableEncryptionAlgorithmsMiniKeySizeLevel) Sets the execution level for the acceptable minimum key sizes of encryption algorithms check- Parameters:
acceptableEncryptionAlgorithmsMiniKeySizeLevel-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
Date getCryptographicSuiteUpdateDate()Returns a date of the update of the cryptographic suites within the validation policy- Returns:
Date
-