Package eu.europa.esig.dss.model.policy
Class Abstract19322CryptographicSuite
java.lang.Object
eu.europa.esig.dss.model.policy.Abstract19322CryptographicSuite
- All Implemented Interfaces:
CryptographicSuite,LevelRule
- Direct Known Subclasses:
CryptographicSuiteJsonWrapper,CryptographicSuiteXmlWrapper
This class contains common methods for processing XML and JSON TS 119 322 schemas.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Map<DigestAlgorithm, Date> Builds a list of acceptable digest algorithms with their corresponding expiration timesprotected abstract Map<EncryptionAlgorithmWithMinKeySize, Date> Builds a list of acceptable encryption algorithms with their corresponding expiration times relatively the key sizesGets 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.getLevel()Gets the constraint execution levelvoidsetAcceptableDigestAlgorithmsLevel(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 constraintsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.model.policy.CryptographicSuite
getCryptographicSuiteUpdateDate, getPolicyName
-
Field Details
-
MODULES_LENGTH_PARAMETER
Key size parameter used by RSA algorithms- See Also:
-
PLENGTH_PARAMETER
P Length key size parameter used by DSA algorithms (supported)- See Also:
-
QLENGTH_PARAMETER
Q Length key size parameter used by DSA algorithms (not supported)- See Also:
-
-
Constructor Details
-
Abstract19322CryptographicSuite
protected Abstract19322CryptographicSuite()Default constructor
-
-
Method Details
-
getLevel
Description copied from interface:LevelRuleGets the constraint execution level -
setLevel
Description copied from interface:CryptographicSuiteSets the global execution level for the cryptographic suite constraints- Specified by:
setLevelin interfaceCryptographicSuite- Parameters:
level-Level
-
getAcceptableDigestAlgorithmsLevel
Description copied from interface:CryptographicSuiteReturns a level constraint for AcceptableDigestAlgo constraint if present, the globalgetLevelotherwise.- Specified by:
getAcceptableDigestAlgorithmsLevelin interfaceCryptographicSuite- Returns:
Level
-
setAcceptableDigestAlgorithmsLevel
Description copied from interface:CryptographicSuiteSets the execution level for the acceptable digest algorithms check- Specified by:
setAcceptableDigestAlgorithmsLevelin interfaceCryptographicSuite- Parameters:
acceptableDigestAlgorithmsLevel-Level
-
getAcceptableEncryptionAlgorithmsLevel
Description copied from interface:CryptographicSuiteReturns a level constraint for AcceptableEncryptionAlgo constraint if present, the globalgetLevelotherwise.- Specified by:
getAcceptableEncryptionAlgorithmsLevelin interfaceCryptographicSuite- Returns:
Level
-
setAcceptableEncryptionAlgorithmsLevel
Description copied from interface:CryptographicSuiteSets the execution level for the acceptable encryption algorithms check- Specified by:
setAcceptableEncryptionAlgorithmsLevelin interfaceCryptographicSuite- Parameters:
acceptableEncryptionAlgorithmsLevel-Level
-
getAcceptableEncryptionAlgorithmsMiniKeySizeLevel
Description copied from interface:CryptographicSuiteReturns a level constraint for MiniPublicKeySize constraint if present, the globalgetLevelotherwise.- Specified by:
getAcceptableEncryptionAlgorithmsMiniKeySizeLevelin interfaceCryptographicSuite- Returns:
Level
-
setAcceptableEncryptionAlgorithmsMiniKeySizeLevel
public void setAcceptableEncryptionAlgorithmsMiniKeySizeLevel(Level acceptableEncryptionAlgorithmsMiniKeySizeLevel) Description copied from interface:CryptographicSuiteSets the execution level for the acceptable minimum key sizes of encryption algorithms check- Specified by:
setAcceptableEncryptionAlgorithmsMiniKeySizeLevelin interfaceCryptographicSuite- Parameters:
acceptableEncryptionAlgorithmsMiniKeySizeLevel-Level
-
getAlgorithmsExpirationDateLevel
Description copied from interface:CryptographicSuiteReturns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevelotherwise.- Specified by:
getAlgorithmsExpirationDateLevelin interfaceCryptographicSuite- Returns:
Level
-
setAlgorithmsExpirationDateLevel
Description copied from interface:CryptographicSuiteSets the execution level for checking algorithms expiration- Specified by:
setAlgorithmsExpirationDateLevelin interfaceCryptographicSuite- Parameters:
algorithmsExpirationDateLevel-Level
-
getAlgorithmsExpirationDateAfterUpdateLevel
Description copied from interface:CryptographicSuiteReturns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevelotherwise.- Specified by:
getAlgorithmsExpirationDateAfterUpdateLevelin interfaceCryptographicSuite- Returns:
Level
-
setAlgorithmsExpirationTimeAfterPolicyUpdateLevel
public void setAlgorithmsExpirationTimeAfterPolicyUpdateLevel(Level algorithmsExpirationTimeAfterPolicyUpdateLevel) Description copied from interface:CryptographicSuiteSets 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)- Specified by:
setAlgorithmsExpirationTimeAfterPolicyUpdateLevelin interfaceCryptographicSuite- Parameters:
algorithmsExpirationTimeAfterPolicyUpdateLevel-Level
-
getAcceptableDigestAlgorithms
Description copied from interface:CryptographicSuiteGets a list of digest algorithms accepted by the validation policy- Specified by:
getAcceptableDigestAlgorithmsin interfaceCryptographicSuite- Returns:
- a list of
DigestAlgorithms
-
getAcceptableEncryptionAlgorithms
Description copied from interface:CryptographicSuiteGets a list of encryption algorithms accepted by the validation policy- Specified by:
getAcceptableEncryptionAlgorithmsin interfaceCryptographicSuite- Returns:
- a list of
EncryptionAlgorithms
-
getAcceptableEncryptionAlgorithmsWithMinKeySizes
Description copied from interface:CryptographicSuiteGets a list of encryption algorithms together with their minimum used key sizes accepted by the validation policy- Specified by:
getAcceptableEncryptionAlgorithmsWithMinKeySizesin interfaceCryptographicSuite- Returns:
- a list of
EncryptionAlgorithmWithMinKeySizes
-
getAcceptableDigestAlgorithmsWithExpirationDates
Description copied from interface:CryptographicSuiteGets a map of supported digest algorithms with the corresponding expiration dates- Specified by:
getAcceptableDigestAlgorithmsWithExpirationDatesin interfaceCryptographicSuite- Returns:
- a map between
DigestAlgorithms and expirationDates
-
getAcceptableEncryptionAlgorithmsWithExpirationDates
public Map<EncryptionAlgorithmWithMinKeySize,Date> getAcceptableEncryptionAlgorithmsWithExpirationDates()Description copied from interface:CryptographicSuiteGets a map of supported encryption algorithms with the applicable key sizes with the corresponding expiration dates- Specified by:
getAcceptableEncryptionAlgorithmsWithExpirationDatesin interfaceCryptographicSuite- Returns:
- a map between
EncryptionAlgorithmWithMinKeySizes and expirationDates
-
buildAcceptableDigestAlgorithmsWithExpirationDates
Builds a list of acceptable digest algorithms with their corresponding expiration times- Returns:
- a map between
DigestAlgorithms and their corresponding expirationDates
-
buildAcceptableEncryptionAlgorithmsWithExpirationDates
protected abstract Map<EncryptionAlgorithmWithMinKeySize,Date> buildAcceptableEncryptionAlgorithmsWithExpirationDates()Builds a list of acceptable encryption algorithms with their corresponding expiration times relatively the key sizes- Returns:
- a map between
EncryptionAlgorithmWithMinKeySizes and their corresponding expirationDates
-