Class AbstractCryptographicCheckerResultCheck<T extends XmlConstraintsConclusion>
java.lang.Object
eu.europa.esig.dss.validation.process.ChainItem<T>
eu.europa.esig.dss.validation.process.bbb.sav.checks.AbstractCryptographicCheckerResultCheck<T>
- Type Parameters:
T
-XmlConstraintsConclusion
implementation of the block's conclusion
- Direct Known Subclasses:
CryptographicCheckerResultCheck
,DigestCryptographicCheckerResultCheck
public abstract class AbstractCryptographicCheckerResultCheck<T extends XmlConstraintsConclusion>
extends ChainItem<T>
Performs cryptographic validation
-
Field Summary
Modifier and TypeFieldDescriptionprotected final XmlCC
Cryptographic Check resultprotected final MessageTag
The cryptographic constraint position to be validatedFields inherited from class eu.europa.esig.dss.validation.process.ChainItem
i18nProvider
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractCryptographicCheckerResultCheck
(I18nProvider i18nProvider, T result, MessageTag position, XmlCC ccResult, LevelConstraint constraint) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected XmlMessage
Builds a constraint messageprotected XmlMessage
Builds an error messageprotected String
Gets error messageprotected Indication
Gets an Indication in case of failureprotected SubIndication
Gets a SubIndication in case of failureprotected Level
getLevel()
Returns an execution Level of the chain itemprotected List<XmlMessage>
Return a list of previous errors occurred in the chainprotected boolean
process()
Performs the checkMethods inherited from class eu.europa.esig.dss.validation.process.ChainItem
buildAdditionalInfo, buildXmlMessage, execute, getAdditionalInfo, getBlockType, getErrorMessageTag, getMessageTag, getSuccessIndication, getSuccessSubIndication, isIndeterminateConclusion, isInvalidConclusion, isValid, isValidConclusion, setNextItem
-
Field Details
-
position
The cryptographic constraint position to be validated -
ccResult
Cryptographic Check result
-
-
Constructor Details
-
AbstractCryptographicCheckerResultCheck
protected AbstractCryptographicCheckerResultCheck(I18nProvider i18nProvider, T result, MessageTag position, XmlCC ccResult, LevelConstraint constraint) Default constructor- Parameters:
i18nProvider
-I18nProvider
result
- the resultposition
-MessageTag
cryptographic constrain positionccResult
-XmlCC
constraint
-LevelConstraint
-
-
Method Details
-
process
protected boolean process()Description copied from class:ChainItem
Performs the check- Specified by:
process
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
- TRUE if the check succeeds, FALSE otherwise
-
getLevel
Description copied from class:ChainItem
Returns an execution Level of the chain item- Overrides:
getLevel
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
Level
-
buildConstraintMessage
Description copied from class:ChainItem
Builds a constraint message- Overrides:
buildConstraintMessage
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
XmlMessage
-
buildErrorMessage
Description copied from class:ChainItem
Builds an error message- Overrides:
buildErrorMessage
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
XmlMessage
-
getFailedIndicationForConclusion
Description copied from class:ChainItem
Gets an Indication in case of failure- Specified by:
getFailedIndicationForConclusion
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
Indication
-
getFailedSubIndicationForConclusion
Description copied from class:ChainItem
Gets a SubIndication in case of failure- Specified by:
getFailedSubIndicationForConclusion
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
SubIndication
-
getPreviousErrors
Description copied from class:ChainItem
Return a list of previous errors occurred in the chain- Overrides:
getPreviousErrors
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
- a list of
XmlMessage
s
-
getErrorMessage
Gets error message- Returns:
String
, or empty string if check succeeded
-