Class AbstractCryptographicCheck<T extends XmlConstraintsConclusion>
java.lang.Object
eu.europa.esig.dss.validation.process.ChainItem<T>
eu.europa.esig.dss.validation.process.bbb.sav.checks.AbstractCryptographicCheck<T>
- Direct Known Subclasses:
CryptographicCheck
,DigestCryptographicCheck
public abstract class AbstractCryptographicCheck<T extends XmlConstraintsConclusion> extends ChainItem<T>
-
Field Summary
Fields Modifier and Type Field Description protected MessageTag
errorMessage
protected String
failedAlgorithm
protected Date
validationDate
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCryptographicCheck(I18nProvider i18nProvider, T result, Date currentTime, CryptographicConstraint constraint)
-
Method Summary
Modifier and Type Method Description protected boolean
digestAlgorithmIsReliable(DigestAlgorithm digestAlgo)
protected boolean
digestAlgorithmIsValidOnValidationDate(DigestAlgorithm digestAlgo)
protected boolean
encryptionAlgorithmIsReliable(EncryptionAlgorithm encryptionAlgo)
protected boolean
encryptionAlgorithmIsValidOnValidationDate(EncryptionAlgorithm encryptionAlgo, String keyLengthUsedToSignThisToken)
protected MessageTag
getAdditionalInfo()
protected MessageTag
getErrorMessageTag()
Returns an i18n key String of an error message to getprotected Indication
getFailedIndicationForConclusion()
protected SubIndication
getFailedSubIndicationForConclusion()
protected MessageTag
getMessageTag()
Returns an i18n key String of a message to getprotected boolean
isExpirationDateAvailable(CryptographicConstraint constraint)
protected boolean
isPublicKeySizeKnown(String keyLengthUsedToSignThisToken)
protected boolean
publicKeySizeIsAcceptable(EncryptionAlgorithm encryptionAlgo, String keyLengthUsedToSignThisToken)
Methods inherited from class eu.europa.esig.dss.validation.process.ChainItem
execute, getPreviousErrors, getSuccessIndication, getSuccessSubIndication, isIndeterminateConclusion, isInvalidConclusion, isValid, isValidConclusion, process, setNextItem
-
Field Details
-
Constructor Details
-
AbstractCryptographicCheck
protected AbstractCryptographicCheck(I18nProvider i18nProvider, T result, Date currentTime, CryptographicConstraint constraint)
-
-
Method Details
-
isPublicKeySizeKnown
-
publicKeySizeIsAcceptable
protected boolean publicKeySizeIsAcceptable(EncryptionAlgorithm encryptionAlgo, String keyLengthUsedToSignThisToken) -
encryptionAlgorithmIsReliable
-
digestAlgorithmIsReliable
-
digestAlgorithmIsValidOnValidationDate
-
encryptionAlgorithmIsValidOnValidationDate
protected boolean encryptionAlgorithmIsValidOnValidationDate(EncryptionAlgorithm encryptionAlgo, String keyLengthUsedToSignThisToken) -
getMessageTag
Description copied from class:ChainItem
Returns an i18n key String of a message to get- Specified by:
getMessageTag
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
MessageTag
key
-
getErrorMessageTag
Description copied from class:ChainItem
Returns an i18n key String of an error message to get- Specified by:
getErrorMessageTag
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
MessageTag
key
-
getFailedIndicationForConclusion
- Specified by:
getFailedIndicationForConclusion
in classChainItem<T extends XmlConstraintsConclusion>
-
getFailedSubIndicationForConclusion
- Specified by:
getFailedSubIndicationForConclusion
in classChainItem<T extends XmlConstraintsConclusion>
-
getAdditionalInfo
- Overrides:
getAdditionalInfo
in classChainItem<T extends XmlConstraintsConclusion>
-
isExpirationDateAvailable
-