Class RevocationConsistentCheck<T extends XmlConstraintsConclusion>

java.lang.Object
eu.europa.esig.dss.validation.process.ChainItem<T>
eu.europa.esig.dss.validation.process.bbb.xcv.rac.checks.RevocationConsistentCheck<T>
Type Parameters:
T - XmlConstraintsConclusion

public class RevocationConsistentCheck<T extends XmlConstraintsConclusion> extends ChainItem<T>
Checks if the revocation is consistent and can be used for the given certificate
  • Field Details

    • certificate

      protected final CertificateWrapper certificate
      The certificate in question
    • revocationData

      protected final RevocationWrapper revocationData
      Revocation data to check
    • thisUpdate

      protected Date thisUpdate
      ThisUpdate of the revocation
    • producedAt

      protected Date producedAt
      ProducedAt time of the revocation
    • certNotBefore

      protected Date certNotBefore
      Certificate's NotBefore
    • certNotAfter

      protected Date certNotAfter
      Certificate's NotAfter
    • notAfterRevoc

      protected Date notAfterRevoc
      Defines date after which the revocation issuer ensure the revocation is contained for the certificate
    • certHashOK

      protected boolean certHashOK
      Defines if certHash matches
  • Constructor Details

  • Method Details

    • getBlockType

      protected XmlBlockType getBlockType()
      Description copied from class: ChainItem
      Returns the validating block type (used for validation result of RAC, RFC, etc.)
      Overrides:
      getBlockType in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      XmlBlockType
    • process

      protected boolean process()
      Description copied from class: ChainItem
      Performs the check
      Specified by:
      process in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      TRUE if the check succeeds, FALSE otherwise
    • getMessageTag

      protected MessageTag getMessageTag()
      Description copied from class: ChainItem
      Returns an i18n key String of a message to get
      Overrides:
      getMessageTag in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      MessageTag key
    • getErrorMessageTag

      protected MessageTag getErrorMessageTag()
      Description copied from class: ChainItem
      Returns an i18n key String of an error message to get
      Overrides:
      getErrorMessageTag in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      MessageTag key
    • getFailedIndicationForConclusion

      protected Indication getFailedIndicationForConclusion()
      Description copied from class: ChainItem
      Gets an Indication in case of failure
      Specified by:
      getFailedIndicationForConclusion in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      Indication
    • getFailedSubIndicationForConclusion

      protected SubIndication getFailedSubIndicationForConclusion()
      Description copied from class: ChainItem
      Gets a SubIndication in case of failure
      Specified by:
      getFailedSubIndicationForConclusion in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      SubIndication
    • buildAdditionalInfo

      protected String buildAdditionalInfo()
      Description copied from class: ChainItem
      Builds an additional information
      Overrides:
      buildAdditionalInfo in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      String
    • getNoThisUpdateMessage

      protected String getNoThisUpdateMessage()
      Returns the additional information message in case of no thisUpdate field defined
      Returns:
      String
    • getThisUpdateBeforeCertificateNotBeforeMessage

      protected String getThisUpdateBeforeCertificateNotBeforeMessage()
      Returns the additional information message in case if thisUpdate is before certificate's notBefore
      Returns:
      String
    • getNotAfterAfterCertificateNotAfterMessage

      protected String getNotAfterAfterCertificateNotAfterMessage()
      Returns the additional information message in case if computed time 'notAfter' is after the certificate's notAfter
      Returns:
      String
    • getRevocationIssuerNotFoundMessage

      protected String getRevocationIssuerNotFoundMessage()
      Returns the additional information message when revocation's issue is not found
      Returns:
      String
    • getRevocationProducesAtOutOfBoundsMessage

      protected String getRevocationProducesAtOutOfBoundsMessage()
      Returns the additional information message when revocation has been produced at out of the signing certificate's validity
      Returns:
      String
    • getRevocationCertHashOkMessage

      protected String getRevocationCertHashOkMessage()
      Returns the additional information message when certHash matches
      Returns:
      String
    • getRevocationConsistentMessage

      protected String getRevocationConsistentMessage()
      Returns the additional information message when the revocation is consistent
      Returns:
      String
    • getRevocationConsistentWithExpiredCertsOnCRLMessage

      protected String getRevocationConsistentWithExpiredCertsOnCRLMessage()
      Returns the additional information message when the revocation is consistent with expiredCertsOnCRL
      Returns:
      String
    • getRevocationConsistentWithArchiveCutoffMessage

      protected String getRevocationConsistentWithArchiveCutoffMessage()
      Returns the additional information message when the revocation is consistent with archiveCutoff
      Returns:
      String
    • getRevocationConsistentWithExpiredCertsRevocationInfoMessage

      protected String getRevocationConsistentWithExpiredCertsRevocationInfoMessage()
      Returns the additional information message when the revocation is consistent with archiveCutoff
      Returns:
      String
    • getRevocationInfoMessage

      protected String getRevocationInfoMessage()
      Returns the additional information message for revocation data in case of other events
      Returns:
      String