Class SignatureAlgorithmCryptographicChecker
java.lang.Object
eu.europa.esig.dss.validation.process.Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlCC>
eu.europa.esig.dss.validation.process.bbb.aov.cc.AbstractAlgorithmCryptographicChecker
eu.europa.esig.dss.validation.process.bbb.aov.cc.SignatureAlgorithmCryptographicChecker
Runs the cryptographic validation for a SignatureAlgorithm with a given key length
-
Field Summary
Fields inherited from class AbstractAlgorithmCryptographicChecker
ALGORITHM_UNIDENTIFIED, ALGORITHM_UNIDENTIFIED_URN, cryptographicAlgorithm, cryptographicSuite, position, validationDateFields inherited from class Chain
firstItem, i18nProvider, result -
Constructor Summary
ConstructorsConstructorDescriptionSignatureAlgorithmCryptographicChecker(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, eu.europa.esig.dss.enumerations.SignatureAlgorithm signatureAlgorithm, String keyLengthUsedToSignThisToken, Date validationDate, eu.europa.esig.dss.i18n.MessageTag position, eu.europa.esig.dss.model.policy.CryptographicSuite cryptographicSuite) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicAlgorithmBuilds and returns the validated algorithmprotected DateReturns time after which the used cryptographic algorithm(s) is no longer considered secureprotected voidInitializes the chainprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if thekeyLengthUsedToSignThisTokenis acceptableprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if thekeyLengthUsedToSignThisTokenis knownprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if thesignatureAlgorithmis not expired in validation timeprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if thesignatureAlgorithmis acceptableMethods inherited from class AbstractAlgorithmCryptographicChecker
addAdditionalInfo, getCryptographicValidation, getTitleMethods inherited from class Chain
buildChainTitle, collectAdditionalMessages, collectAllMessages, collectMessages, execute, getFailLevelRule, getInfoLevelRule, getWarnLevelRule, isValid, isValidConclusion
-
Constructor Details
-
SignatureAlgorithmCryptographicChecker
public SignatureAlgorithmCryptographicChecker(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, eu.europa.esig.dss.enumerations.SignatureAlgorithm signatureAlgorithm, String keyLengthUsedToSignThisToken, Date validationDate, eu.europa.esig.dss.i18n.MessageTag position, eu.europa.esig.dss.model.policy.CryptographicSuite cryptographicSuite) Default constructor
-
-
Method Details
-
initChain
-
signatureAlgorithmReliable
Checks if thesignatureAlgorithmis acceptable- Returns:
- TRUE if the
signatureAlgorithmis acceptable, FALSE otherwise
-
publicKeySizeKnown
Checks if thekeyLengthUsedToSignThisTokenis known- Returns:
- TRUE if the
keyLengthUsedToSignThisTokenis known, FALSE otherwise
-
publicKeySizeAcceptable
Checks if thekeyLengthUsedToSignThisTokenis acceptable- Returns:
- TRUE if the
keyLengthUsedToSignThisTokenis acceptable, FALSE otherwise
-
signatureAlgorithmOnValidationTime
protected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> signatureAlgorithmOnValidationTime()Checks if thesignatureAlgorithmis not expired in validation time- Returns:
- TRUE if the
signatureAlgorithmis not expired in validation time, FALSE otherwise
-
getAlgorithm
protected eu.europa.esig.dss.detailedreport.jaxb.XmlCryptographicAlgorithm getAlgorithm()Description copied from class:AbstractAlgorithmCryptographicCheckerBuilds and returns the validated algorithm- Specified by:
getAlgorithmin classAbstractAlgorithmCryptographicChecker- Returns:
XmlCryptographicAlgorithm
-
getNotAfter
Description copied from class:AbstractAlgorithmCryptographicCheckerReturns time after which the used cryptographic algorithm(s) is no longer considered secure- Specified by:
getNotAfterin classAbstractAlgorithmCryptographicChecker- Returns:
Date
-