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 CryptographicConstraintWrapper
constraintWrapper
Cryptographic constraintprotected DigestAlgorithm
digestAlgorithm
The Digest algorithmprotected EncryptionAlgorithm
encryptionAlgorithm
The Encryption algorithmprotected String
keyLengthUsedToSignThisToken
Used Key lengthprotected MaskGenerationFunction
maskGenerationFunction
Mask generation function when presentprotected MessageTag
position
The validation constraint positionprotected Date
validationDate
The validation timeFields inherited from class eu.europa.esig.dss.validation.process.Chain
firstItem, i18nProvider, result
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCryptographicChecker(I18nProvider i18nProvider, DigestAlgorithm digestAlgorithm, Date validationDate, MessageTag position, CryptographicConstraint constraint)
Default constructorprotected
AbstractCryptographicChecker(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 void
addAdditionalInfo()
Adds an additional info to the chainprotected ChainItem<XmlCC>
digestAlgorithmOnValidationTime()
Checks if thedigestAlgorithm
is not expired in validation timeprotected ChainItem<XmlCC>
digestAlgorithmReliable()
Checks if thedigestAlgorithm
is acceptableprotected ChainItem<XmlCC>
encryptionAlgorithmOnValidationTime()
Checks if theencryptionAlgorithm
is not expired in validation timeprotected ChainItem<XmlCC>
encryptionAlgorithmReliable()
Checks if theencryptionAlgorithm
is acceptableprotected MessageTag
getTitle()
Returns title of a Chain (i.e.protected boolean
isExpirationDateAvailable()
Gets if the expiration dates are available in the policyprotected ChainItem<XmlCC>
publicKeySizeAcceptable()
Checks if thekeyLengthUsedToSignThisToken
is acceptableprotected ChainItem<XmlCC>
publicKeySizeKnown()
Checks if thekeyLengthUsedToSignThisToken
is 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
-I18nProvider
digestAlgorithm
-DigestAlgorithm
validationDate
-Date
position
-MessageTag
constraint
-CryptographicConstraint
-
AbstractCryptographicChecker
protected AbstractCryptographicChecker(I18nProvider i18nProvider, EncryptionAlgorithm encryptionAlgorithm, DigestAlgorithm digestAlgorithm, MaskGenerationFunction maskGenerationFunction, String keyLengthUsedToSignThisToken, Date validationDate, MessageTag position, CryptographicConstraint constraint)Complete constructor- Parameters:
i18nProvider
-I18nProvider
encryptionAlgorithm
-EncryptionAlgorithm
digestAlgorithm
-DigestAlgorithm
maskGenerationFunction
-MaskGenerationFunction
keyLengthUsedToSignThisToken
-String
validationDate
-Date
position
-MessageTag
constraint
-CryptographicConstraint
-
-
Method Details
-
getTitle
Description copied from class:Chain
Returns title of a Chain (i.e. BasicBuildingBlock title)- Overrides:
getTitle
in 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 theencryptionAlgorithm
is acceptable- Returns:
- TRUE if the
encryptionAlgorithm
is acceptable, FALSE otherwise
-
digestAlgorithmReliable
Checks if thedigestAlgorithm
is acceptable- Returns:
- TRUE if the
digestAlgorithm
is acceptable, FALSE otherwise
-
encryptionAlgorithmOnValidationTime
Checks if theencryptionAlgorithm
is not expired in validation time- Returns:
- TRUE if the
encryptionAlgorithm
is not expired in validation time, FALSE otherwise
-
digestAlgorithmOnValidationTime
Checks if thedigestAlgorithm
is not expired in validation time- Returns:
- TRUE if the
digestAlgorithm
is not expired in validation time, FALSE otherwise
-
publicKeySizeKnown
Checks if thekeyLengthUsedToSignThisToken
is known- Returns:
- TRUE if the
keyLengthUsedToSignThisToken
is known, FALSE otherwise
-
publicKeySizeAcceptable
Checks if thekeyLengthUsedToSignThisToken
is acceptable- Returns:
- TRUE if the
keyLengthUsedToSignThisToken
is acceptable, FALSE otherwise
-
addAdditionalInfo
protected void addAdditionalInfo()Description copied from class:Chain
Adds an additional info to the chain- Overrides:
addAdditionalInfo
in classChain<XmlCC>
-