Class ThreadSafeHMAC

java.lang.Object
com.ning.http.client.oauth.ThreadSafeHMAC

public class ThreadSafeHMAC extends Object
Since cloning (of MAC instances) is not necessarily supported on all platforms (and specifically seems to fail on MacOS), let's wrap synchronization/reuse details here. Assumption is that this is bit more efficient (even considering synchronization) than locating and reconstructing instance each time. In future we may want to use soft references and thread local instance.
Author:
tatu (tatu.saloranta@iki.fi)
  • Constructor Details

  • Method Details

    • digest

      public byte[] digest(ByteBuffer message)