public class

ThreadSafeHMAC

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

Class Overview

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.

Summary

Public Constructors
ThreadSafeHMAC(ConsumerKey consumerAuth, RequestToken userAuth)
Public Methods
synchronized byte[] digest(byte[] message)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ThreadSafeHMAC (ConsumerKey consumerAuth, RequestToken userAuth)

Public Methods

public synchronized byte[] digest (byte[] message)