Class WSSSynchronizer

java.lang.Object
com.helger.phase4.wss.WSSSynchronizer

@ThreadSafe public final class WSSSynchronizer extends Object
A helper class to run all WSS stuff in a lock. WSSConfig.init() and WSSConfig.cleanUp() is called for every invocation.
Note: this class may only be invoked if AS4Configuration.isWSS4JSynchronizedSecurity() returns true.
Since:
0.11.0
Author:
Philip Helger
  • Method Details

    • run

      public static void run(@Nonnull Runnable aRunnable)
      A wrapper around call(IThrowingSupplier) swallowing the return value
      Parameters:
      aRunnable - The runnable to be run. May not be null.
    • call

      @Nullable public static <T, EX extends Exception> T call(@Nonnull com.helger.commons.functional.IThrowingSupplier<T,EX> aSupplier) throws EX
      Throws:
      EX