Class CryptographicConstraintWrapper
java.lang.Object
eu.europa.esig.dss.policy.LevelConstraintWrapper
eu.europa.esig.dss.policy.CryptographicConstraintWrapper
- All Implemented Interfaces:
CryptographicSuite, LevelRule
public class CryptographicConstraintWrapper
extends LevelConstraintWrapper
implements CryptographicSuite
Wraps a
CryptographicConstraint of the DSS JAXB validation policy implementation
into a CryptographicConstraintWrapper-
Field Summary
Fields inherited from class LevelConstraintWrapper
constraint -
Constructor Summary
ConstructorsConstructorDescriptionConstructor to create an empty instance of Cryptographic constraintsDefault constructor -
Method Summary
Modifier and TypeMethodDescriptionGets a map of DigestAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationrulesReturns a level constraint for AcceptableDigestAlgo constraint if present, the globalgetLevelotherwise.Gets a map of SignatureAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationrulesReturns a level constraint for AcceptableEncryptionAlgo constraint if present, the globalgetLevelotherwise.Returns a level constraint for MiniPublicKeySize constraint if present, the globalgetLevelotherwise.Returns 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 checkvoidsetAcceptableSignatureAlgorithmsLevel(Level acceptableEncryptionAlgorithmsLevel) Sets the execution level for the acceptable signature algorithms checkvoidsetAcceptableSignatureAlgorithmsMiniKeySizeLevel(Level acceptableEncryptionAlgorithmsMiniKeySizeLevel) Sets the execution level for the acceptable minimum key sizes of signature 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 LevelConstraintWrapper
getConstraint, getLevel
-
Constructor Details
-
CryptographicConstraintWrapper
public CryptographicConstraintWrapper()Constructor to create an empty instance of Cryptographic constraints -
CryptographicConstraintWrapper
Default constructor- Parameters:
constraint-CryptographicConstraint
-
-
Method Details
-
getPolicyName
Description copied from interface:CryptographicSuiteGets a cryptographic suite name- Specified by:
getPolicyNamein interfaceCryptographicSuite- Returns:
String
-
getAcceptableDigestAlgorithms
Description copied from interface:CryptographicSuiteGets a map of DigestAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationrules- Specified by:
getAcceptableDigestAlgorithmsin interfaceCryptographicSuite- Returns:
- a link between
DigestAlgorithms and correspondingCryptographicSuiteEvaluations
-
getAcceptableSignatureAlgorithms
public Map<SignatureAlgorithm, Set<CryptographicSuiteEvaluation>> getAcceptableSignatureAlgorithms()Description copied from interface:CryptographicSuiteGets a map of SignatureAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationrules- Specified by:
getAcceptableSignatureAlgorithmsin interfaceCryptographicSuite- Returns:
- a link between
SignatureAlgorithms and correspondingCryptographicSuiteEvaluations
-
setLevel
Description copied from interface:CryptographicSuiteSets the global execution level for the cryptographic suite constraints- Specified by:
setLevelin interfaceCryptographicSuite- Parameters:
level-Level
-
getAcceptableSignatureAlgorithmsLevel
Description copied from interface:CryptographicSuiteReturns a level constraint for AcceptableEncryptionAlgo constraint if present, the globalgetLevelotherwise.- Specified by:
getAcceptableSignatureAlgorithmsLevelin interfaceCryptographicSuite- Returns:
Level
-
setAcceptableSignatureAlgorithmsLevel
Description copied from interface:CryptographicSuiteSets the execution level for the acceptable signature algorithms check- Specified by:
setAcceptableSignatureAlgorithmsLevelin interfaceCryptographicSuite- Parameters:
acceptableEncryptionAlgorithmsLevel-Level
-
getAcceptableSignatureAlgorithmsMiniKeySizeLevel
Description copied from interface:CryptographicSuiteReturns a level constraint for MiniPublicKeySize constraint if present, the globalgetLevelotherwise.- Specified by:
getAcceptableSignatureAlgorithmsMiniKeySizeLevelin interfaceCryptographicSuite- Returns:
Level
-
setAcceptableSignatureAlgorithmsMiniKeySizeLevel
public void setAcceptableSignatureAlgorithmsMiniKeySizeLevel(Level acceptableEncryptionAlgorithmsMiniKeySizeLevel) Description copied from interface:CryptographicSuiteSets the execution level for the acceptable minimum key sizes of signature algorithms check- Specified by:
setAcceptableSignatureAlgorithmsMiniKeySizeLevelin interfaceCryptographicSuite- Parameters:
acceptableEncryptionAlgorithmsMiniKeySizeLevel-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
-
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
-
getCryptographicSuiteUpdateDate
Description copied from interface:CryptographicSuiteReturns a date of the update of the cryptographic suites within the validation policy- Specified by:
getCryptographicSuiteUpdateDatein interfaceCryptographicSuite- Returns:
Date
-