Skip to content

Commit

Permalink
Improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Dec 10, 2021
1 parent 5d02d22 commit 45a15f1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion as2-lib/src/main/java/com/helger/as2lib/crypto/MIC.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public static MIC parse (@Nullable final String sMIC)
final String sMICBytes = st.nextToken ();
final byte [] aMICBytes = Base64.safeDecode (sMICBytes);
if (aMICBytes == null)
throw new IllegalArgumentException ("Failed to base64 decode '" + sMICBytes + "'");
throw new IllegalArgumentException ("Failed to base64 decode MIC '" + sMICBytes + "'");

if (!st.hasMoreTokens ())
throw new IllegalArgumentException ("Separator after Base64 bytes is missing");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ protected void receiveSyncMDN (@Nonnull final AS2Message aMsg,
final String sDisposition = aMDN.attrs ().getAsString (AS2MessageMDN.MDNA_DISPOSITION);

if (LOGGER.isInfoEnabled ())
LOGGER.info ("received MDN [" + sDisposition + "]" + aMsg.getLoggingText ());
LOGGER.info ("Received synchronous AS2 MDN [" + sDisposition + "]" + aMsg.getLoggingText ());

// Asynch MDN 2007-03-12
// Verify if the original mic is equal to the mic in returned MDN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public static void main (final String [] args) throws Exception
// When a signed message is used, the algorithm for MIC and message must be
// identical
final ECryptoAlgorithmSign eSignAlgo = ECryptoAlgorithmSign.DIGEST_SHA_256;
// CBC works, GCM is not supported
final ECryptoAlgorithmCrypt eCryptAlgo = ECryptoAlgorithmCrypt.CRYPT_AES128_GCM;
final ECompressionType eCompress = ECompressionType.ZLIB;
final boolean bCompressBeforeSigning = AS2ClientSettings.DEFAULT_COMPRESS_BEFORE_SIGNING;
Expand Down

0 comments on commit 45a15f1

Please sign in to comment.