Class PeppolCertificateChecker

java.lang.Object
com.helger.peppol.utils.PeppolCertificateChecker

@ThreadSafe public final class PeppolCertificateChecker extends Object
The Peppol certificate checker
Since:
7.0.4
Author:
Philip Helger
  • Method Details

    • peppolTestAP

      @Nonnull public static PeppolCAChecker peppolTestAP()
      Returns:
      The Peppol CA checker for Pilot AP certificates.
      Since:
      9.6.0
    • peppolProductionAP

      @Nonnull public static PeppolCAChecker peppolProductionAP()
      Returns:
      The Peppol CA checker for Production AP certificates.
      Since:
      9.6.0
    • peppolAllAP

      @Nonnull public static PeppolCAChecker peppolAllAP()
      Returns:
      The Peppol CA checker for Pilot and Production AP certificates.
      Since:
      9.6.0
    • peppolTestSMP

      @Nonnull public static PeppolCAChecker peppolTestSMP()
      Returns:
      The Peppol CA checker for Pilot SMP certificates.
      Since:
      9.6.0
    • peppolProductionSMP

      @Nonnull public static PeppolCAChecker peppolProductionSMP()
      Returns:
      The Peppol CA checker for Production SMP certificates.
      Since:
      9.6.0
    • peppolAllSMP

      @Nonnull public static PeppolCAChecker peppolAllSMP()
      Returns:
      The Peppol CA checker for Pilot and Production SMP certificates.
      Since:
      9.6.0
    • peppolTestEb2bAP

      @Nonnull public static PeppolCAChecker peppolTestEb2bAP()
      Returns:
      The Peppol CA checker for Pilot eB2B AP certificates.
      Since:
      9.6.0
    • peppolProductionEb2bAP

      @Nonnull public static PeppolCAChecker peppolProductionEb2bAP()
      Returns:
      The Peppol CA checker for production eB2B AP certificates.
      Since:
      10.0.1
    • clearRevocationCheckCache

      public static void clearRevocationCheckCache()
      Remove all entries from the OSCP cache.
    • checkCertificate

      @Nonnull public static EPeppolCertificateCheckResult checkCertificate(@Nullable com.helger.commons.collection.impl.ICommonsSet<X500Principal> aIssuers, @Nullable com.helger.security.revocation.RevocationCheckResultCache aRevocationCache, @Nonnull com.helger.security.revocation.AbstractRevocationCheckBuilder<?> aRevocationChecker)
      Check if the provided certificate (from the revocation checker) is a valid certificate. It checks:
      1. Validity at the provided date time (aRevocationChecker.checkDate) or per now if none was provided
      2. If the certificate issuer is part of the provided list of issuers
      3. If the certificate is revoked
      Parameters:
      aIssuers - The list of valid certificate issuers to check against. May be null to not perform this check.
      aRevocationCache - The cache. May be null to disable caching.
      aRevocationChecker - The revocation checker builder with all necessary parameters already set. May not be null.
      Returns:
      EPeppolCertificateCheckResult and never null.
      Since:
      8.5.2