Class AS4DumpReader

java.lang.Object
com.helger.phase4.dump.AS4DumpReader

public final class AS4DumpReader extends Object
Utility method to read dump files later.
Since:
1.3.1
Author:
Philip Helger
  • Method Details

    • decryptAS4In

      public static void decryptAS4In(@Nonnull byte[] aAS4InData, @Nonnull IAS4CryptoFactory aCF, @Nullable Consumer<com.helger.commons.http.HttpHeaderMap> aHttpHeaderConsumer, @Nonnull AS4DumpReader.IDecryptedPayloadConsumer aDecryptedConsumer) throws org.apache.wss4j.common.ext.WSSecurityException, Phase4Exception, IOException, javax.mail.MessagingException
      Utility method to decrypt dumped .as4in message late.
      Note: this method was mainly created for internal use and does not win the prize for the most sexy piece of software in the world ;-)
      Parameters:
      aAS4InData - The byte array with the dumped data.
      aCF - The Crypto factory to be used. This crypto factory must use use the private key that can be used to decrypt this particular message. May not be null.
      aHttpHeaderConsumer - An optional HTTP Header map consumer. May be null.
      aDecryptedConsumer - The consumer for the decrypted payload - whatever that is :). May not be null.
      Throws:
      org.apache.wss4j.common.ext.WSSecurityException - In case of error
      Phase4Exception - In case of error
      IOException - In case of error
      javax.mail.MessagingException - In case of error