Package eu.europa.esig.dss.model.policy
Interface CryptographicSuite
- All Superinterfaces:
LevelRule
- All Known Implementing Classes:
Abstract19322CryptographicSuite,CryptographicConstraintWrapper,CryptographicSuiteJsonWrapper,CryptographicSuiteXmlWrapper
Contains policy for validation of cryptographic suites used on the signature or certificates
-
Method Summary
Modifier and TypeMethodDescriptionGets a list of digest algorithms accepted by the validation policyReturns a level constraint for AcceptableDigestAlgo constraint if present, the globalgetLevelotherwise.Gets a map of supported digest algorithms with the corresponding expiration datesGets a list of encryption algorithms accepted by the validation policyReturns a level constraint for AcceptableEncryptionAlgo constraint if present, the globalgetLevelotherwise.Returns 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 policyReturns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevelotherwise.Returns 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(Level acceptableDigestAlgorithmsLevel) Sets the execution level for the acceptable digest algorithms checkvoidsetAcceptableEncryptionAlgorithmsLevel(Level acceptableEncryptionAlgorithmsLevel) Sets the execution level for the acceptable encryption algorithms checkvoidsetAcceptableEncryptionAlgorithmsMiniKeySizeLevel(Level acceptableEncryptionAlgorithmsMiniKeySizeLevel) Sets the execution level for the acceptable minimum key sizes of encryption algorithms checkvoidsetAlgorithmsExpirationDateLevel(Level algorithmsExpirationDateLevel) Sets the execution level for checking algorithms expirationvoidsetAlgorithmsExpirationTimeAfterPolicyUpdateLevel(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)voidSets the global execution level for the cryptographic suite constraints
-
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 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
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 globalgetLevelotherwise.- Returns:
Level
-
setAcceptableDigestAlgorithmsLevel
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 globalgetLevelotherwise.- Returns:
Level
-
setAcceptableEncryptionAlgorithmsLevel
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 globalgetLevelotherwise.- 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 globalgetLevelotherwise.- Returns:
Level
-
setAlgorithmsExpirationDateLevel
Sets the execution level for checking algorithms expiration- Parameters:
algorithmsExpirationDateLevel-Level
-
getAlgorithmsExpirationDateAfterUpdateLevel
Level getAlgorithmsExpirationDateAfterUpdateLevel()Returns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevelotherwise.- 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
-