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 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.getLevel()
Gets the constraint execution levelvoid
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 constraintsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:LevelRule
Gets the constraint execution level -
setLevel
Description copied from interface:CryptographicSuite
Sets the global execution level for the cryptographic suite constraints- Specified by:
setLevel
in interfaceCryptographicSuite
- Parameters:
level
-Level
-
getAcceptableDigestAlgorithmsLevel
Description copied from interface:CryptographicSuite
Returns a level constraint for AcceptableDigestAlgo constraint if present, the globalgetLevel
otherwise.- Specified by:
getAcceptableDigestAlgorithmsLevel
in interfaceCryptographicSuite
- Returns:
Level
-
setAcceptableDigestAlgorithmsLevel
Description copied from interface:CryptographicSuite
Sets the execution level for the acceptable digest algorithms check- Specified by:
setAcceptableDigestAlgorithmsLevel
in interfaceCryptographicSuite
- Parameters:
acceptableDigestAlgorithmsLevel
-Level
-
getAcceptableEncryptionAlgorithmsLevel
Description copied from interface:CryptographicSuite
Returns a level constraint for AcceptableEncryptionAlgo constraint if present, the globalgetLevel
otherwise.- Specified by:
getAcceptableEncryptionAlgorithmsLevel
in interfaceCryptographicSuite
- Returns:
Level
-
setAcceptableEncryptionAlgorithmsLevel
Description copied from interface:CryptographicSuite
Sets the execution level for the acceptable encryption algorithms check- Specified by:
setAcceptableEncryptionAlgorithmsLevel
in interfaceCryptographicSuite
- Parameters:
acceptableEncryptionAlgorithmsLevel
-Level
-
getAcceptableEncryptionAlgorithmsMiniKeySizeLevel
Description copied from interface:CryptographicSuite
Returns a level constraint for MiniPublicKeySize constraint if present, the globalgetLevel
otherwise.- Specified by:
getAcceptableEncryptionAlgorithmsMiniKeySizeLevel
in interfaceCryptographicSuite
- Returns:
Level
-
setAcceptableEncryptionAlgorithmsMiniKeySizeLevel
public void setAcceptableEncryptionAlgorithmsMiniKeySizeLevel(Level acceptableEncryptionAlgorithmsMiniKeySizeLevel) Description copied from interface:CryptographicSuite
Sets the execution level for the acceptable minimum key sizes of encryption algorithms check- Specified by:
setAcceptableEncryptionAlgorithmsMiniKeySizeLevel
in interfaceCryptographicSuite
- Parameters:
acceptableEncryptionAlgorithmsMiniKeySizeLevel
-Level
-
getAlgorithmsExpirationDateLevel
Description copied from interface:CryptographicSuite
Returns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevel
otherwise.- Specified by:
getAlgorithmsExpirationDateLevel
in interfaceCryptographicSuite
- Returns:
Level
-
setAlgorithmsExpirationDateLevel
Description copied from interface:CryptographicSuite
Sets the execution level for checking algorithms expiration- Specified by:
setAlgorithmsExpirationDateLevel
in interfaceCryptographicSuite
- Parameters:
algorithmsExpirationDateLevel
-Level
-
getAlgorithmsExpirationDateAfterUpdateLevel
Description copied from interface:CryptographicSuite
Returns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevel
otherwise.- Specified by:
getAlgorithmsExpirationDateAfterUpdateLevel
in interfaceCryptographicSuite
- Returns:
Level
-
setAlgorithmsExpirationTimeAfterPolicyUpdateLevel
public void setAlgorithmsExpirationTimeAfterPolicyUpdateLevel(Level algorithmsExpirationTimeAfterPolicyUpdateLevel) Description copied from interface:CryptographicSuite
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)- Specified by:
setAlgorithmsExpirationTimeAfterPolicyUpdateLevel
in interfaceCryptographicSuite
- Parameters:
algorithmsExpirationTimeAfterPolicyUpdateLevel
-Level
-
getAcceptableDigestAlgorithms
Description copied from interface:CryptographicSuite
Gets a list of digest algorithms accepted by the validation policy- Specified by:
getAcceptableDigestAlgorithms
in interfaceCryptographicSuite
- Returns:
- a list of
DigestAlgorithm
s
-
getAcceptableEncryptionAlgorithms
Description copied from interface:CryptographicSuite
Gets a list of encryption algorithms accepted by the validation policy- Specified by:
getAcceptableEncryptionAlgorithms
in interfaceCryptographicSuite
- Returns:
- a list of
EncryptionAlgorithm
s
-
getAcceptableEncryptionAlgorithmsWithMinKeySizes
Description copied from interface:CryptographicSuite
Gets a list of encryption algorithms together with their minimum used key sizes accepted by the validation policy- Specified by:
getAcceptableEncryptionAlgorithmsWithMinKeySizes
in interfaceCryptographicSuite
- Returns:
- a list of
EncryptionAlgorithmWithMinKeySize
s
-
getAcceptableDigestAlgorithmsWithExpirationDates
Description copied from interface:CryptographicSuite
Gets a map of supported digest algorithms with the corresponding expiration dates- Specified by:
getAcceptableDigestAlgorithmsWithExpirationDates
in interfaceCryptographicSuite
- Returns:
- a map between
DigestAlgorithm
s and expirationDate
s
-
getAcceptableEncryptionAlgorithmsWithExpirationDates
public Map<EncryptionAlgorithmWithMinKeySize,Date> getAcceptableEncryptionAlgorithmsWithExpirationDates()Description copied from interface:CryptographicSuite
Gets a map of supported encryption algorithms with the applicable key sizes with the corresponding expiration dates- Specified by:
getAcceptableEncryptionAlgorithmsWithExpirationDates
in interfaceCryptographicSuite
- Returns:
- a map between
EncryptionAlgorithmWithMinKeySize
s and expirationDate
s
-
buildAcceptableDigestAlgorithmsWithExpirationDates
Builds a list of acceptable digest algorithms with their corresponding expiration times- Returns:
- a map between
DigestAlgorithm
s and their corresponding expirationDate
s
-
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
EncryptionAlgorithmWithMinKeySize
s and their corresponding expirationDate
s
-