diff --git a/as2-lib/src/main/java/com/helger/as2lib/crypto/MIC.java b/as2-lib/src/main/java/com/helger/as2lib/crypto/MIC.java index e2339e13..be89b4f7 100644 --- a/as2-lib/src/main/java/com/helger/as2lib/crypto/MIC.java +++ b/as2-lib/src/main/java/com/helger/as2lib/crypto/MIC.java @@ -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"); diff --git a/as2-lib/src/main/java/com/helger/as2lib/processor/sender/AS2SenderModule.java b/as2-lib/src/main/java/com/helger/as2lib/processor/sender/AS2SenderModule.java index 1ea10359..0a993b30 100644 --- a/as2-lib/src/main/java/com/helger/as2lib/processor/sender/AS2SenderModule.java +++ b/as2-lib/src/main/java/com/helger/as2lib/processor/sender/AS2SenderModule.java @@ -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 diff --git a/as2-lib/src/test/java/com/helger/as2lib/supplementary/main/MainSendToLocalhost8080.java b/as2-lib/src/test/java/com/helger/as2lib/supplementary/main/MainSendToLocalhost8080.java index d4d3978f..03eeea28 100644 --- a/as2-lib/src/test/java/com/helger/as2lib/supplementary/main/MainSendToLocalhost8080.java +++ b/as2-lib/src/test/java/com/helger/as2lib/supplementary/main/MainSendToLocalhost8080.java @@ -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;