Class AbstractCryptographicChecker
java.lang.Object
eu.europa.esig.dss.validation.process.Chain<XmlCC>
eu.europa.esig.dss.validation.process.bbb.sav.cc.AbstractCryptographicChecker
- Direct Known Subclasses:
CryptographicChecker,DigestCryptographicChecker
public abstract class AbstractCryptographicChecker extends Chain<XmlCC>
Abstract class to perform cryptographic validation
-
Field Summary
Fields Modifier and Type Field Description protected CryptographicConstraintWrapperconstraintWrapperCryptographic constraintprotected DigestAlgorithmdigestAlgorithmThe Digest algorithmprotected EncryptionAlgorithmencryptionAlgorithmThe Encryption algorithmprotected StringkeyLengthUsedToSignThisTokenUsed Key lengthprotected MaskGenerationFunctionmaskGenerationFunctionMask generation function when presentprotected MessageTagpositionThe validation constraint positionprotected DatevalidationDateThe validation timeFields inherited from class eu.europa.esig.dss.validation.process.Chain
firstItem, i18nProvider, result -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCryptographicChecker(I18nProvider i18nProvider, DigestAlgorithm digestAlgorithm, Date validationDate, MessageTag position, CryptographicConstraint constraint)Default constructorprotectedAbstractCryptographicChecker(I18nProvider i18nProvider, EncryptionAlgorithm encryptionAlgorithm, DigestAlgorithm digestAlgorithm, MaskGenerationFunction maskGenerationFunction, String keyLengthUsedToSignThisToken, Date validationDate, MessageTag position, CryptographicConstraint constraint)Complete constructor -
Method Summary
Modifier and Type Method Description protected voidaddAdditionalInfo()Adds an additional info to the chainprotected ChainItem<XmlCC>digestAlgorithmOnValidationTime()Checks if thedigestAlgorithmis not expired in validation timeprotected ChainItem<XmlCC>digestAlgorithmReliable()Checks if thedigestAlgorithmis acceptableprotected ChainItem<XmlCC>encryptionAlgorithmOnValidationTime()Checks if theencryptionAlgorithmis not expired in validation timeprotected ChainItem<XmlCC>encryptionAlgorithmReliable()Checks if theencryptionAlgorithmis acceptableprotected MessageTaggetTitle()Returns title of a Chain (i.e.protected booleanisExpirationDateAvailable()Gets if the expiration dates are available in the policyprotected ChainItem<XmlCC>publicKeySizeAcceptable()Checks if thekeyLengthUsedToSignThisTokenis acceptableprotected ChainItem<XmlCC>publicKeySizeKnown()Checks if thekeyLengthUsedToSignThisTokenis knownMethods inherited from class eu.europa.esig.dss.validation.process.Chain
buildChainTitle, collectErrorsWarnsInfos, execute, getFailLevelConstraint, getInfoLevelConstraint, getWarnLevelConstraint, initChain, isValid, isValidConclusion
-
Field Details
-
encryptionAlgorithm
The Encryption algorithm -
digestAlgorithm
The Digest algorithm -
maskGenerationFunction
Mask generation function when present -
keyLengthUsedToSignThisToken
Used Key length -
validationDate
The validation time -
constraintWrapper
Cryptographic constraint -
position
The validation constraint position
-
-
Constructor Details
-
AbstractCryptographicChecker
protected AbstractCryptographicChecker(I18nProvider i18nProvider, DigestAlgorithm digestAlgorithm, Date validationDate, MessageTag position, CryptographicConstraint constraint)Default constructor- Parameters:
i18nProvider-I18nProviderdigestAlgorithm-DigestAlgorithmvalidationDate-Dateposition-MessageTagconstraint-CryptographicConstraint
-
AbstractCryptographicChecker
protected AbstractCryptographicChecker(I18nProvider i18nProvider, EncryptionAlgorithm encryptionAlgorithm, DigestAlgorithm digestAlgorithm, MaskGenerationFunction maskGenerationFunction, String keyLengthUsedToSignThisToken, Date validationDate, MessageTag position, CryptographicConstraint constraint)Complete constructor- Parameters:
i18nProvider-I18nProviderencryptionAlgorithm-EncryptionAlgorithmdigestAlgorithm-DigestAlgorithmmaskGenerationFunction-MaskGenerationFunctionkeyLengthUsedToSignThisToken-StringvalidationDate-Dateposition-MessageTagconstraint-CryptographicConstraint
-
-
Method Details
-
getTitle
Description copied from class:ChainReturns title of a Chain (i.e. BasicBuildingBlock title)- Overrides:
getTitlein classChain<XmlCC>- Returns:
MessageTag
-
isExpirationDateAvailable
protected boolean isExpirationDateAvailable()Gets if the expiration dates are available in the policy- 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
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 an additional info to the chain- Overrides:
addAdditionalInfoin classChain<XmlCC>
-