Package com.helger.phase4.dump
Class AS4DumpReader
java.lang.Object
com.helger.phase4.dump.AS4DumpReader
Utility method to read dump files later.
- Since:
- 1.3.1
- Author:
- Philip Helger
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddecryptAS4In(byte[] aAS4InData, IAS4CryptoFactory aCF, Consumer<com.helger.commons.http.HttpHeaderMap> aHttpHeaderConsumer, AS4DumpReader.IDecryptedPayloadConsumer aDecryptedConsumer) 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 ;-)
-
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 benull.aHttpHeaderConsumer- An optional HTTP Header map consumer. May benull.aDecryptedConsumer- The consumer for the decrypted payload - whatever that is :). May not benull.- Throws:
org.apache.wss4j.common.ext.WSSecurityException- In case of errorPhase4Exception- In case of errorIOException- In case of errorjavax.mail.MessagingException- In case of error
-