Class CryptographicSuite19322
java.lang.Object
eu.europa.esig.dss.model.policy.crypto.CryptographicSuite19322
- All Implemented Interfaces:
CryptographicSuite, LevelRule
This class contains common methods for processing XML and JSON TS 119 322 schemas.
-
Constructor Summary
ConstructorsConstructorDescriptionCryptographicSuite19322(CryptographicSuiteMetadata metadata, List<CryptographicSuiteAlgorithm> algorithmList) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionMap<eu.europa.esig.dss.enumerations.DigestAlgorithm, Set<CryptographicSuiteEvaluation>> Gets a map of DigestAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationruleseu.europa.esig.dss.enumerations.LevelReturns a level constraint for AcceptableDigestAlgo constraint if present, the globalgetLevelotherwise.Map<eu.europa.esig.dss.enumerations.SignatureAlgorithm, Set<CryptographicSuiteEvaluation>> Gets a map of SignatureAlgorithm's extracted from a cryptographic suite and their correspondingCryptographicSuiteEvaluationruleseu.europa.esig.dss.enumerations.LevelReturns a level constraint for AcceptableEncryptionAlgo constraint if present, the globalgetLevelotherwise.eu.europa.esig.dss.enumerations.LevelReturns a level constraint for MiniPublicKeySize constraint if present, the globalgetLevelotherwise.eu.europa.esig.dss.enumerations.LevelReturns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevelotherwise.eu.europa.esig.dss.enumerations.LevelReturns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevelotherwise.Returns a date of the update of the cryptographic suites within the validation policyeu.europa.esig.dss.enumerations.LevelgetLevel()Gets the constraint execution levelGets a cryptographic suite namevoidsetAcceptableDigestAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableDigestAlgorithmsLevel) Sets the execution level for the acceptable digest algorithms checkvoidsetAcceptableSignatureAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsLevel) Sets the execution level for the acceptable signature algorithms checkvoidsetAcceptableSignatureAlgorithmsMiniKeySizeLevel(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsMiniKeySizeLevel) Sets the execution level for the acceptable minimum key sizes of signature algorithms checkvoidsetAlgorithmsExpirationDateLevel(eu.europa.esig.dss.enumerations.Level algorithmsExpirationDateLevel) Sets the execution level for checking algorithms expirationvoidsetAlgorithmsExpirationTimeAfterPolicyUpdateLevel(eu.europa.esig.dss.enumerations.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)voidsetLevel(eu.europa.esig.dss.enumerations.Level level) Sets the global execution level for the cryptographic suite constraints
-
Constructor Details
-
CryptographicSuite19322
public CryptographicSuite19322(CryptographicSuiteMetadata metadata, List<CryptographicSuiteAlgorithm> algorithmList) Default constructor- Parameters:
metadata-CryptographicSuiteMetadataalgorithmList- a collection ofCryptographicSuiteAlgorithms
-
-
Method Details
-
getPolicyName
Description copied from interface:CryptographicSuiteGets a cryptographic suite name- Specified by:
getPolicyNamein interfaceCryptographicSuite- Returns:
String
-
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
-
getLevel
-
setLevel
public void setLevel(eu.europa.esig.dss.enumerations.Level level) Description copied from interface:CryptographicSuiteSets the global execution level for the cryptographic suite constraints- Specified by:
setLevelin interfaceCryptographicSuite- Parameters:
level-Level
-
getAcceptableDigestAlgorithmsLevel
public eu.europa.esig.dss.enumerations.Level getAcceptableDigestAlgorithmsLevel()Description copied from interface:CryptographicSuiteReturns a level constraint for AcceptableDigestAlgo constraint if present, the globalgetLevelotherwise.- Specified by:
getAcceptableDigestAlgorithmsLevelin interfaceCryptographicSuite- Returns:
Level
-
setAcceptableDigestAlgorithmsLevel
public void setAcceptableDigestAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableDigestAlgorithmsLevel) Description copied from interface:CryptographicSuiteSets the execution level for the acceptable digest algorithms check- Specified by:
setAcceptableDigestAlgorithmsLevelin interfaceCryptographicSuite- Parameters:
acceptableDigestAlgorithmsLevel-Level
-
getAcceptableSignatureAlgorithmsLevel
public eu.europa.esig.dss.enumerations.Level getAcceptableSignatureAlgorithmsLevel()Description copied from interface:CryptographicSuiteReturns a level constraint for AcceptableEncryptionAlgo constraint if present, the globalgetLevelotherwise.- Specified by:
getAcceptableSignatureAlgorithmsLevelin interfaceCryptographicSuite- Returns:
Level
-
setAcceptableSignatureAlgorithmsLevel
public void setAcceptableSignatureAlgorithmsLevel(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsLevel) Description copied from interface:CryptographicSuiteSets the execution level for the acceptable signature algorithms check- Specified by:
setAcceptableSignatureAlgorithmsLevelin interfaceCryptographicSuite- Parameters:
acceptableSignatureAlgorithmsLevel-Level
-
getAcceptableSignatureAlgorithmsMiniKeySizeLevel
public eu.europa.esig.dss.enumerations.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(eu.europa.esig.dss.enumerations.Level acceptableSignatureAlgorithmsMiniKeySizeLevel) Description copied from interface:CryptographicSuiteSets the execution level for the acceptable minimum key sizes of signature algorithms check- Specified by:
setAcceptableSignatureAlgorithmsMiniKeySizeLevelin interfaceCryptographicSuite- Parameters:
acceptableSignatureAlgorithmsMiniKeySizeLevel-Level
-
getAlgorithmsExpirationDateLevel
public eu.europa.esig.dss.enumerations.Level getAlgorithmsExpirationDateLevel()Description copied from interface:CryptographicSuiteReturns a level constraint for AlgoExpirationDate constraint if present, the globalgetLevelotherwise.- Specified by:
getAlgorithmsExpirationDateLevelin interfaceCryptographicSuite- Returns:
Level
-
setAlgorithmsExpirationDateLevel
public void setAlgorithmsExpirationDateLevel(eu.europa.esig.dss.enumerations.Level algorithmsExpirationDateLevel) Description copied from interface:CryptographicSuiteSets the execution level for checking algorithms expiration- Specified by:
setAlgorithmsExpirationDateLevelin interfaceCryptographicSuite- Parameters:
algorithmsExpirationDateLevel-Level
-
getAlgorithmsExpirationDateAfterUpdateLevel
public eu.europa.esig.dss.enumerations.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(eu.europa.esig.dss.enumerations.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
public Map<eu.europa.esig.dss.enumerations.DigestAlgorithm, Set<CryptographicSuiteEvaluation>> 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<eu.europa.esig.dss.enumerations.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
-