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 globalgetLevel
otherwise.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 globalgetLevel
otherwise.Returns a level constraint for MiniPublicKeySize constraint if present, the globalgetLevel
otherwise.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 globalgetLevel
otherwise.Returns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevel
otherwise.Returns a date of the update of the cryptographic suites within the validation policyGets a cryptographic suite namevoid
setAcceptableDigestAlgorithmsLevel
(Level acceptableDigestAlgorithmsLevel) Sets the execution level for the acceptable digest algorithms checkvoid
setAcceptableEncryptionAlgorithmsLevel
(Level acceptableEncryptionAlgorithmsLevel) Sets the execution level for the acceptable encryption algorithms checkvoid
setAcceptableEncryptionAlgorithmsMiniKeySizeLevel
(Level acceptableEncryptionAlgorithmsMiniKeySizeLevel) Sets the execution level for the acceptable minimum key sizes of encryption algorithms checkvoid
setAlgorithmsExpirationDateLevel
(Level algorithmsExpirationDateLevel) Sets the execution level for checking algorithms expirationvoid
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)void
Sets 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
DigestAlgorithm
s
-
getAcceptableEncryptionAlgorithms
List<EncryptionAlgorithm> getAcceptableEncryptionAlgorithms()Gets a list of encryption algorithms accepted by the validation policy- Returns:
- a list of
EncryptionAlgorithm
s
-
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
EncryptionAlgorithmWithMinKeySize
s
-
getAcceptableDigestAlgorithmsWithExpirationDates
Map<DigestAlgorithm,Date> getAcceptableDigestAlgorithmsWithExpirationDates()Gets a map of supported digest algorithms with the corresponding expiration dates- Returns:
- a map between
DigestAlgorithm
s and expirationDate
s
-
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
EncryptionAlgorithmWithMinKeySize
s and expirationDate
s
-
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 globalgetLevel
otherwise.- 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 globalgetLevel
otherwise.- 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 globalgetLevel
otherwise.- 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 globalgetLevel
otherwise.- 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 globalgetLevel
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
-