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
- Direct Known Subclasses:
CryptographicCheckerResultCheck
,DigestCryptographicCheckerResultCheck
public abstract class AbstractCryptographicCheckerResultCheck<T extends XmlConstraintsConclusion> extends ChainItem<T>
Performs cryptographic validation
-
Field Summary
Fields Modifier and Type Field Description protected XmlCC
ccResult
Cryptographic Check resultprotected MessageTag
position
The cryptographic constrain position to be validatedFields inherited from class eu.europa.esig.dss.validation.process.ChainItem
i18nProvider
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCryptographicCheckerResultCheck(I18nProvider i18nProvider, T result, MessageTag position, XmlCC ccResult, LevelConstraint constraint)
Default constructor -
Method Summary
Modifier and Type Method Description protected XmlName
buildConstraintMessage()
Builds a constraint messageprotected XmlName
buildErrorMessage()
Builds an error messageprotected String
getErrorMessage()
Gets error messageprotected Indication
getFailedIndicationForConclusion()
Gets an Indication in case of failureprotected SubIndication
getFailedSubIndicationForConclusion()
Gets a SubIndication in case of failureprotected List<XmlName>
getPreviousErrors()
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, buildXmlName, execute, getAdditionalInfo, getErrorMessageTag, getMessageTag, getSuccessIndication, getSuccessSubIndication, isIndeterminateConclusion, isInvalidConclusion, isValid, isValidConclusion, setNextItem
-
Field Details
-
position
The cryptographic constrain 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
-
buildConstraintMessage
Description copied from class:ChainItem
Builds a constraint message- Overrides:
buildConstraintMessage
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
XmlName
-
buildErrorMessage
Description copied from class:ChainItem
Builds an error message- Overrides:
buildErrorMessage
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
XmlName
-
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
XmlName
s
-
getErrorMessage
Gets error message- Returns:
String
, or empty string if check succeeded
-