Class AbstractBasicValidationProcess<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>

java.lang.Object
eu.europa.esig.dss.validation.process.Chain<T>
eu.europa.esig.dss.validation.process.vpfbs.AbstractBasicValidationProcess<T>
Type Parameters:
T - implementation of the block's conclusion
Direct Known Subclasses:
BasicSignatureValidationProcess, RevocationBasicValidationProcess, TimestampBasicValidationProcess

public abstract class AbstractBasicValidationProcess<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion> extends Chain<T>
The abstract class implementing the "5.3 Validation process for Basic Signatures" process
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<String, eu.europa.esig.dss.detailedreport.jaxb.XmlBasicBuildingBlocks>
    Map of BasicBuildingBlocks
    protected final eu.europa.esig.dss.diagnostic.DiagnosticData
    Diagnostic Data
    protected final eu.europa.esig.dss.diagnostic.TokenProxy
    The token to be validated

    Fields inherited from class Chain

    firstItem, i18nProvider, result
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractBasicValidationProcess(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T result, eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData, eu.europa.esig.dss.diagnostic.TokenProxy token, Map<String, eu.europa.esig.dss.detailedreport.jaxb.XmlBasicBuildingBlocks> bbbs)
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected ChainItem<T>
    basicValidationProcess(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion xmlConclusion)
    Executes a final validation check of the "5.3 Validation process for Basic Signatures" block
    protected void
    collectAdditionalMessages(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion conclusion)
    The method allows to fill up additional messages into the conclusion
    protected void
    collectMessages(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion conclusion, eu.europa.esig.dss.detailedreport.jaxb.XmlConstraint constraint)
    Collects required messages from xmlConstraint to the given conclusion NOTE: bye default the only one error is already collected in the chain (no more possible), therefore no need to collect it again
    protected ChainItem<T>
    cryptographicVerification(eu.europa.esig.dss.detailedreport.jaxb.XmlCV xmlCV)
    Executes "5.2.7 Cryptographic verification" building block for the given token
    protected ChainItem<T>
    formatChecking(eu.europa.esig.dss.detailedreport.jaxb.XmlFC xmlFC)
    Executes "5.2.2 Format Checking" building block for the given token
    protected List<eu.europa.esig.dss.diagnostic.TimestampWrapper>
    Returns a list of content timestamps
    protected eu.europa.esig.dss.detailedreport.jaxb.XmlValidationProcessBasicTimestamp
    Gets the corresponding validation result for a timestamp with the given Id
    protected ChainItem<T>
    identificationOfSigningCertificate(eu.europa.esig.dss.detailedreport.jaxb.XmlISC xmlISC)
    Executes "5.2.3 Identification of the signing certificate" building block for the given token
    protected void
    Initializes the chain
    protected ChainItem<T>
    signatureAcceptanceValidation(eu.europa.esig.dss.detailedreport.jaxb.XmlSAV xmlSAV)
    Executes "5.2.8 Signature Acceptance Validation (SAV)" building block for the given token
    protected ChainItem<T>
    validationContextInitialization(eu.europa.esig.dss.detailedreport.jaxb.XmlVCI xmlVCI)
    Executes "5.2.4 Validation context initialization" building block for the given token
    protected ChainItem<T>
    x509CertificateValidation(eu.europa.esig.dss.detailedreport.jaxb.XmlXCV xmlXCV)
    Executes "5.2.6 X.509 certificate validation" building block for the given token

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • diagnosticData

      protected final eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData
      Diagnostic Data
    • token

      protected final eu.europa.esig.dss.diagnostic.TokenProxy token
      The token to be validated
    • bbbs

      protected final Map<String, eu.europa.esig.dss.detailedreport.jaxb.XmlBasicBuildingBlocks> bbbs
      Map of BasicBuildingBlocks
  • Constructor Details

    • AbstractBasicValidationProcess

      protected AbstractBasicValidationProcess(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T result, eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData, eu.europa.esig.dss.diagnostic.TokenProxy token, Map<String, eu.europa.esig.dss.detailedreport.jaxb.XmlBasicBuildingBlocks> bbbs)
      Default constructor
      Parameters:
      i18nProvider - I18nProvider
      result - XmlConstraintsConclusion
      diagnosticData - DiagnosticData
      token - TokenProxy
      bbbs - map of BasicBuildingBlocks
  • Method Details

    • initChain

      protected void initChain()
      Description copied from class: Chain
      Initializes the chain
      Specified by:
      initChain in class Chain<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>
    • formatChecking

      protected ChainItem<T> formatChecking(eu.europa.esig.dss.detailedreport.jaxb.XmlFC xmlFC)
      Executes "5.2.2 Format Checking" building block for the given token
      Parameters:
      xmlFC - XmlFC
      Returns:
      ChainItem
    • identificationOfSigningCertificate

      protected ChainItem<T> identificationOfSigningCertificate(eu.europa.esig.dss.detailedreport.jaxb.XmlISC xmlISC)
      Executes "5.2.3 Identification of the signing certificate" building block for the given token
      Parameters:
      xmlISC - XmlISC
      Returns:
      ChainItem
    • validationContextInitialization

      protected ChainItem<T> validationContextInitialization(eu.europa.esig.dss.detailedreport.jaxb.XmlVCI xmlVCI)
      Executes "5.2.4 Validation context initialization" building block for the given token
      Parameters:
      xmlVCI - XmlVCI
      Returns:
      ChainItem
    • x509CertificateValidation

      protected ChainItem<T> x509CertificateValidation(eu.europa.esig.dss.detailedreport.jaxb.XmlXCV xmlXCV)
      Executes "5.2.6 X.509 certificate validation" building block for the given token
      Parameters:
      xmlXCV - XmlXCV
      Returns:
      ChainItem
    • cryptographicVerification

      protected ChainItem<T> cryptographicVerification(eu.europa.esig.dss.detailedreport.jaxb.XmlCV xmlCV)
      Executes "5.2.7 Cryptographic verification" building block for the given token
      Parameters:
      xmlCV - XmlCV
      Returns:
      ChainItem
    • signatureAcceptanceValidation

      protected ChainItem<T> signatureAcceptanceValidation(eu.europa.esig.dss.detailedreport.jaxb.XmlSAV xmlSAV)
      Executes "5.2.8 Signature Acceptance Validation (SAV)" building block for the given token
      Parameters:
      xmlSAV - XmlSAV
      Returns:
      ChainItem
    • basicValidationProcess

      protected ChainItem<T> basicValidationProcess(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion xmlConclusion)
      Executes a final validation check of the "5.3 Validation process for Basic Signatures" block
      Parameters:
      xmlConclusion - XmlConclusion containing the result of the validation process for Basic Signatures
      Returns:
      ChainItem
    • getContentTimestamps

      protected List<eu.europa.esig.dss.diagnostic.TimestampWrapper> getContentTimestamps()
      Returns a list of content timestamps
      Returns:
      a list of TimestampWrappers
    • getTimestampValidation

      protected eu.europa.esig.dss.detailedreport.jaxb.XmlValidationProcessBasicTimestamp getTimestampValidation(String timestampId)
      Gets the corresponding validation result for a timestamp with the given Id
      Parameters:
      timestampId - String Id of a timestamp to get validation result for
      Returns:
      XmlValidationProcessBasicTimestamp
    • collectMessages

      protected void collectMessages(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion conclusion, eu.europa.esig.dss.detailedreport.jaxb.XmlConstraint constraint)
      Description copied from class: Chain
      Collects required messages from xmlConstraint to the given conclusion NOTE: bye default the only one error is already collected in the chain (no more possible), therefore no need to collect it again
      Overrides:
      collectMessages in class Chain<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>
      Parameters:
      conclusion - XmlConclusion to fill up
      constraint - XmlConstraint to extract messages from
    • collectAdditionalMessages

      protected void collectAdditionalMessages(eu.europa.esig.dss.detailedreport.jaxb.XmlConclusion conclusion)
      Description copied from class: Chain
      The method allows to fill up additional messages into the conclusion
      Overrides:
      collectAdditionalMessages in class Chain<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>
      Parameters:
      conclusion - XmlConclusion to fill up