Module jpms_dss_validation
Class AbstractCryptographicChecker
java.lang.Object
eu.europa.esig.dss.validation.process.Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlCC>
eu.europa.esig.dss.validation.process.bbb.sav.cc.AbstractCryptographicChecker
- Direct Known Subclasses:
CryptographicChecker,DigestCryptographicChecker
public abstract class AbstractCryptographicChecker
extends Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlCC>
Abstract class to perform cryptographic validation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CryptographicConstraintWrapperCryptographic constraintprotected final eu.europa.esig.dss.enumerations.DigestAlgorithmThe Digest algorithmprotected final eu.europa.esig.dss.enumerations.EncryptionAlgorithmThe Encryption algorithmprotected final StringUsed Key lengthprotected final eu.europa.esig.dss.i18n.MessageTagThe validation constraint positionprotected final DateThe validation timeFields inherited from class eu.europa.esig.dss.validation.process.Chain
firstItem, i18nProvider, result -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCryptographicChecker(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, Date validationDate, eu.europa.esig.dss.i18n.MessageTag position, eu.europa.esig.dss.policy.jaxb.CryptographicConstraint constraint) Default constructorprotectedAbstractCryptographicChecker(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, eu.europa.esig.dss.enumerations.EncryptionAlgorithm encryptionAlgorithm, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, String keyLengthUsedToSignThisToken, Date validationDate, eu.europa.esig.dss.i18n.MessageTag position, eu.europa.esig.dss.policy.jaxb.CryptographicConstraint constraint) Complete constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds additional info to the chainprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if thedigestAlgorithmis not expired in validation timeprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if thedigestAlgorithmis acceptableprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if theencryptionAlgorithmis not expired in validation timeprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if theencryptionAlgorithmis acceptableprotected DateReturns time after which the used cryptographic algorithm(s) is no longer considered secureprotected eu.europa.esig.dss.i18n.MessageTaggetTitle()Returns title of a Chain (i.e.protected booleanisExpirationDateAvailable(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) Gets if the expiration date if defined for the givendigestAlgorithmprotected booleanisExpirationDateAvailable(eu.europa.esig.dss.enumerations.EncryptionAlgorithm encryptionAlgorithm, String keyLength) Gets if the expiration date if defined for the givenencryptionAlgorithmandkeyLengthprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if thekeyLengthUsedToSignThisTokenis acceptableprotected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> Checks if thekeyLengthUsedToSignThisTokenis knownMethods inherited from class eu.europa.esig.dss.validation.process.Chain
buildChainTitle, collectAdditionalMessages, collectAllMessages, collectMessages, execute, getFailLevelConstraint, getInfoLevelConstraint, getWarnLevelConstraint, initChain, isValid, isValidConclusion
-
Field Details
-
encryptionAlgorithm
protected final eu.europa.esig.dss.enumerations.EncryptionAlgorithm encryptionAlgorithmThe Encryption algorithm -
digestAlgorithm
protected final eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithmThe Digest algorithm -
keyLengthUsedToSignThisToken
Used Key length -
validationDate
The validation time -
constraintWrapper
Cryptographic constraint -
position
protected final eu.europa.esig.dss.i18n.MessageTag positionThe validation constraint position
-
-
Constructor Details
-
AbstractCryptographicChecker
protected AbstractCryptographicChecker(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, Date validationDate, eu.europa.esig.dss.i18n.MessageTag position, eu.europa.esig.dss.policy.jaxb.CryptographicConstraint constraint) Default constructor- Parameters:
i18nProvider-I18nProviderdigestAlgorithm-DigestAlgorithmvalidationDate-Dateposition-MessageTagconstraint-CryptographicConstraint
-
AbstractCryptographicChecker
protected AbstractCryptographicChecker(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, eu.europa.esig.dss.enumerations.EncryptionAlgorithm encryptionAlgorithm, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, String keyLengthUsedToSignThisToken, Date validationDate, eu.europa.esig.dss.i18n.MessageTag position, eu.europa.esig.dss.policy.jaxb.CryptographicConstraint constraint) Complete constructor
-
-
Method Details
-
getTitle
-
isExpirationDateAvailable
protected boolean isExpirationDateAvailable(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) Gets if the expiration date if defined for the givendigestAlgorithm- Parameters:
digestAlgorithm-DigestAlgorithmto check expiration date for- Returns:
- TRUE if expiration constrains are defines, FALSE otherwise
-
isExpirationDateAvailable
protected boolean isExpirationDateAvailable(eu.europa.esig.dss.enumerations.EncryptionAlgorithm encryptionAlgorithm, String keyLength) Gets if the expiration date if defined for the givenencryptionAlgorithmandkeyLength- Parameters:
encryptionAlgorithm-EncryptionAlgorithmto check expiration date forkeyLength-Stringused to sign the token- Returns:
- TRUE if expiration constrains are defines, FALSE otherwise
-
encryptionAlgorithmReliable
Checks if theencryptionAlgorithmis acceptable- Returns:
- TRUE if the
encryptionAlgorithmis acceptable, FALSE otherwise
-
digestAlgorithmReliable
Checks if thedigestAlgorithmis acceptable- Returns:
- TRUE if the
digestAlgorithmis acceptable, FALSE otherwise
-
encryptionAlgorithmOnValidationTime
protected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlCC> encryptionAlgorithmOnValidationTime()Checks if theencryptionAlgorithmis not expired in validation time- Returns:
- TRUE if the
encryptionAlgorithmis not expired in validation time, FALSE otherwise
-
digestAlgorithmOnValidationTime
Checks if thedigestAlgorithmis not expired in validation time- Returns:
- TRUE if the
digestAlgorithmis not expired in validation time, 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
-
addAdditionalInfo
protected void addAdditionalInfo()Description copied from class:ChainAdds additional info to the chain- Overrides:
addAdditionalInfoin classChain<eu.europa.esig.dss.detailedreport.jaxb.XmlCC>
-
getNotAfter
-