Package com.helger.peppol.utils
Class PeppolCertificateChecker
java.lang.Object
com.helger.peppol.utils.PeppolCertificateChecker
The Peppol certificate checker
- Since:
- 7.0.4
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptioncheckCertificate(com.helger.commons.collection.impl.ICommonsSet<X500Principal> aIssuers, com.helger.security.revocation.RevocationCheckResultCache aRevocationCache, com.helger.security.revocation.AbstractRevocationCheckBuilder<?> aRevocationChecker) Check if the provided certificate (from the revocation checker) is a valid certificate.static voidRemove all entries from the OSCP cache.static PeppolCACheckerstatic PeppolCACheckerstatic PeppolCACheckerstatic PeppolCACheckerstatic PeppolCACheckerstatic PeppolCACheckerstatic PeppolCACheckerstatic PeppolCAChecker
-
Method Details
-
peppolTestAP
- Returns:
- The Peppol CA checker for Pilot AP certificates.
- Since:
- 9.6.0
-
peppolProductionAP
- Returns:
- The Peppol CA checker for Production AP certificates.
- Since:
- 9.6.0
-
peppolAllAP
- Returns:
- The Peppol CA checker for Pilot and Production AP certificates.
- Since:
- 9.6.0
-
peppolTestSMP
- Returns:
- The Peppol CA checker for Pilot SMP certificates.
- Since:
- 9.6.0
-
peppolProductionSMP
- Returns:
- The Peppol CA checker for Production SMP certificates.
- Since:
- 9.6.0
-
peppolAllSMP
- Returns:
- The Peppol CA checker for Pilot and Production SMP certificates.
- Since:
- 9.6.0
-
peppolTestEb2bAP
- Returns:
- The Peppol CA checker for Pilot eB2B AP certificates.
- Since:
- 9.6.0
-
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:- Validity at the provided date time (aRevocationChecker.checkDate) or per now if none was provided
- If the certificate issuer is part of the provided list of issuers
- If the certificate is revoked
- Parameters:
aIssuers- The list of valid certificate issuers to check against. May benullto not perform this check.aRevocationCache- The cache. May benullto disable caching.aRevocationChecker- The revocation checker builder with all necessary parameters already set. May not benull.- Returns:
EPeppolCertificateCheckResultand nevernull.- Since:
- 8.5.2
-