Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jan 9, 2024
1 parent 186d034 commit d53052c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ private static void _initPeppolAS4 ()

// Check if the certificate is really a Peppol AP certificate - fail early
// if something is misconfigured
// No CRL/OCSP check for performance
// * Do not cache result
// * Use the global checking mode or provide a new one
final boolean bPerformOCSP = true;
final EPeppolCertificateCheckResult eCheckResult = PeppolCertificateChecker.checkPeppolAPCertificate (aAPCert,
MetaAS4Manager.getTimestampMgr ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,11 @@ public AS4MessageProcessorResult processAS4UserMessage (@Nonnull final IAS4Incom

if (getCheckSigningCertificateRevocation ().getAsBooleanValue (Phase4PeppolServletConfiguration.isCheckSigningCertificateRevocation ()))
{
// Check if signing certificate is revoked
final OffsetDateTime aNow = MetaAS4Manager.getTimestampMgr ().getCurrentDateTime ();
final X509Certificate aSenderCert = aState.getUsedCertificate ();
// Check if signing AP certificate is revoked
// * Use global caching setting
// * Use global certificate check mode
final EPeppolCertificateCheckResult eCertCheckResult = PeppolCertificateChecker.checkPeppolAPCertificate (aSenderCert,
aNow,
ETriState.UNDEFINED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ private static void _initPeppolAS4 ()
// TODO This block SHOULD be uncommented once you have a Peppol certificate
if (false)
{
// Check that your Peppol AP certificate is valid
// * No caching
// * Use global certificate check mode
final EPeppolCertificateCheckResult eCheckResult = PeppolCertificateChecker.checkPeppolAPCertificate (aAPCert,
MetaAS4Manager.getTimestampMgr ()
.getCurrentDateTime (),
Expand Down

0 comments on commit d53052c

Please sign in to comment.