File tree 1 file changed +3
-2
lines changed
as2-lib/src/main/java/com/helger/as2lib/crypto 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ private X509Certificate _verifyFindCertificate (@Nullable final X509Certificate
664
664
final Collection <?> aContainedCerts = aSignedParser .getCertificates ().getMatches (aSignerID );
665
665
if (!aContainedCerts .isEmpty ())
666
666
{
667
- // For PEPPOL the certificate is passed in
667
+ // E.g. for Peppol the certificate is passed in
668
668
if (aContainedCerts .size () > 1 )
669
669
LOGGER .warn ("Signed part contains " + aContainedCerts .size () + " certificates - using the first one!" );
670
670
@@ -674,7 +674,7 @@ private X509Certificate _verifyFindCertificate (@Nullable final X509Certificate
674
674
if (aX509Cert != null && !aX509Cert .equals (aCert ))
675
675
LOGGER .warn ("Certificate mismatch! Provided certificate\n " +
676
676
aX509Cert +
677
- " differs from certficate contained in message\n " +
677
+ "\n differs from certficate contained in message\n " +
678
678
aCert );
679
679
680
680
// The certificate provided in the message takes precedence
@@ -727,6 +727,7 @@ public MimeBodyPart verify (@Nonnull final MimeBodyPart aPart,
727
727
EContentTransferEncoding .AS2_DEFAULT .getID (),
728
728
aResHelper .createTempFile ());
729
729
730
+ // If no certificate is found, an exception is thrown
730
731
final X509Certificate aRealX509Cert = _verifyFindCertificate (aX509Cert , bUseCertificateInBodyPart , aSignedParser );
731
732
732
733
if (LOGGER .isDebugEnabled ())
You can’t perform that action at this time.
0 commit comments