Class PAdESBaselineRequirementsChecker

java.lang.Object
eu.europa.esig.dss.pades.validation.PAdESBaselineRequirementsChecker

public class PAdESBaselineRequirementsChecker extends Object
Performs checks according to EN 319 142-1 v1.1.1 "6.3 PAdES baseline signatures"
  • Field Details

    • signature

      protected final eu.europa.esig.dss.cades.validation.CAdESSignature signature
    • offlineCertificateVerifier

      protected final eu.europa.esig.dss.spi.validation.CertificateVerifier offlineCertificateVerifier
  • Constructor Details

    • PAdESBaselineRequirementsChecker

      public PAdESBaselineRequirementsChecker(PAdESSignature signature, eu.europa.esig.dss.spi.validation.CertificateVerifier offlineCertificateVerifier)
      Default constructor
      Parameters:
      signature - PAdESSignature
      offlineCertificateVerifier - CertificateVerifier
  • Method Details

    • getBaselineSignatureForm

      protected eu.europa.esig.dss.enumerations.SignatureForm getBaselineSignatureForm()
    • hasBaselineBProfile

      public boolean hasBaselineBProfile()
    • cmsBaselineBRequirements

      protected boolean cmsBaselineBRequirements()
    • hasBaselineTProfile

      public boolean hasBaselineTProfile()
    • hasBaselineLTProfile

      public boolean hasBaselineLTProfile()
    • hasLTProfile

      protected boolean hasLTProfile()
      Verifies a presence of LT-profile for a PDF signature
      Returns:
      TRUE if the LT-profile is present, FALSE otherwise
    • hasBaselineLTAProfile

      public boolean hasBaselineLTAProfile()
    • hasExtendedBESProfile

      public boolean hasExtendedBESProfile()
    • hasExtendedEPESProfile

      public boolean hasExtendedEPESProfile()
    • hasExtendedLTVProfile

      public boolean hasExtendedLTVProfile()
      Checks if the signature has a corresponding PAdES-E-LTV profile
      Returns:
      TRUE if the signature has a PAdES-E-LTV profile, FALSE otherwise
    • hasPKCS7Profile

      public boolean hasPKCS7Profile()
      Checks if the signature has PKCS#7 profile (according to ISO 32000-1)
      Returns:
      TRUE if the signature has a PKCS#7 profile, FALSE otherwise
    • hasPKCS7TProfile

      public boolean hasPKCS7TProfile()
      Checks if the signature has PKCS#7-T profile
      Returns:
      TRUE if the signature has a PKCS#7-T profile, FALSE otherwise
    • hasPKCS7LTProfile

      public boolean hasPKCS7LTProfile()
      Checks if the signature has PKCS#7-LT profile
      Returns:
      TRUE if the signature has a PKCS#7-LT profile, FALSE otherwise
    • hasPKCS7LTAProfile

      public boolean hasPKCS7LTAProfile()
      Checks if the signature has PKCS#7-LTA profile
      Returns:
      TRUE if the signature has a PKCS#7-LTA profile, FALSE otherwise
    • containsLTLevelCertificates

      protected boolean containsLTLevelCertificates()
    • cmsExtendedBESRequirements

      protected boolean cmsExtendedBESRequirements()
    • hasExtendedTProfile

      public boolean hasExtendedTProfile()
    • hasExtendedCProfile

      public boolean hasExtendedCProfile()
    • hasExtendedXProfile

      public boolean hasExtendedXProfile()
    • hasExtendedXLProfile

      public boolean hasExtendedXLProfile()
    • hasExtendedAProfile

      public boolean hasExtendedAProfile()
    • hasExtendedERSProfile

      public boolean hasExtendedERSProfile()
    • signatureTimestampsCreatedBeforeSignCertExpiration

      protected boolean signatureTimestampsCreatedBeforeSignCertExpiration()
    • minimalTRequirement

      protected boolean minimalTRequirement()
    • minimalLTRequirement

      public boolean minimalLTRequirement()
    • getCertificateSourcesExceptLastArchiveTimestamp

      protected eu.europa.esig.dss.spi.x509.ListCertificateSource getCertificateSourcesExceptLastArchiveTimestamp()
    • getValidationContext

      protected eu.europa.esig.dss.spi.validation.ValidationContext getValidationContext()
    • minimalLTARequirement

      public boolean minimalLTARequirement()
    • containsSigningCertificate

      protected boolean containsSigningCertificate(Collection<eu.europa.esig.dss.model.x509.CertificateToken> arg0)
    • isSignaturePolicyIdentifierHashPresent

      protected boolean isSignaturePolicyIdentifierHashPresent()