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
Abstract class to perform cryptographic validation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CryptographicConstraintWrapperCryptographic constraintprotected final DigestAlgorithmThe Digest algorithmprotected final EncryptionAlgorithmThe Encryption algorithmprotected final StringUsed Key lengthprotected final MessageTagThe validation constraint positionprotected final DateThe validation timeFields inherited from class eu.europa.esig.dss.validation.process.Chain
firstItem, i18nProvider, result -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCryptographicChecker(I18nProvider i18nProvider, DigestAlgorithm digestAlgorithm, Date validationDate, MessageTag position, CryptographicConstraint constraint) Default constructorprotectedAbstractCryptographicChecker(I18nProvider i18nProvider, EncryptionAlgorithm encryptionAlgorithm, DigestAlgorithm digestAlgorithm, String keyLengthUsedToSignThisToken, Date validationDate, MessageTag position, CryptographicConstraint constraint) Complete constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds additional info to the chainChecks if thedigestAlgorithmis not expired in validation timeChecks if thedigestAlgorithmis acceptableChecks if theencryptionAlgorithmis not expired in validation timeChecks if theencryptionAlgorithmis acceptableprotected DateReturns time after which the used cryptographic algorithm(s) is no longer considered secureprotected MessageTaggetTitle()Returns title of a Chain (i.e.protected booleanisExpirationDateAvailable(DigestAlgorithm digestAlgorithm) Gets if the expiration date if defined for the givendigestAlgorithmprotected booleanisExpirationDateAvailable(EncryptionAlgorithm encryptionAlgorithm, String keyLength) Gets if the expiration date if defined for the givenencryptionAlgorithmandkeyLengthChecks if thekeyLengthUsedToSignThisTokenis acceptableChecks 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
The Encryption algorithm -
digestAlgorithm
The Digest algorithm -
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, String keyLengthUsedToSignThisToken, Date validationDate, MessageTag position, CryptographicConstraint constraint) Complete constructor- Parameters:
i18nProvider-I18nProviderencryptionAlgorithm-EncryptionAlgorithmdigestAlgorithm-DigestAlgorithmkeyLengthUsedToSignThisToken-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
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(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
-
digestAlgorithmReliable
-
encryptionAlgorithmOnValidationTime
-
digestAlgorithmOnValidationTime
-
publicKeySizeKnown
-
publicKeySizeAcceptable
-
addAdditionalInfo
protected void addAdditionalInfo()Description copied from class:ChainAdds additional info to the chain- Overrides:
addAdditionalInfoin classChain<XmlCC>
-
getNotAfter
-